oas-resolve · fallback
Declared module signatures, types, configuration, and source documentation.
Source: oas/oas/oas-resolve/src/fallback.rs. SHA-256: d896098c170df028892ba94542076fc2b89085ee858d4d8fa239ee2461cb9832.
This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.
fallback::FallbackResolver
A resolver that tries multiple backend resolvers in priority order.
Per OAS Spec §12.4 (Registry priority): resolvers MAY be configured with a priority-ordered list of registries.
Examples
use oas_resolve::fallback::FallbackResolver;
use oas_resolve::memory::InMemoryResolver;
let primary = InMemoryResolver::new();
let secondary = InMemoryResolver::new();
let fallback = FallbackResolver::new(vec![
Box::new(primary),
Box::new(secondary),
]);pub struct FallbackResolver {
}Source line: 31.
fallback::FallbackResolver::new
Creates a new fallback resolver with the given backends.
Resolvers are tried in order — the first one to return a successful result wins.
Arguments
resolvers- Priority-ordered list of resolvers.
pub fn new(resolvers: Vec<Box<dyn Resolver>>) -> Self;Source line: 44.
fallback::FallbackResolver::resolver_count
Returns the number of configured backend resolvers.
pub fn resolver_count(&self) -> usize;Source line: 49.