pub struct FallbackPolicy {
pub backends: Vec<String>,
pub on: Vec<FailureClass>,
}Expand description
Runtime failure fallback (spec 003, 3.6.2), distinct from the definition’s compile-time capability fallback.
Fields§
§backends: Vec<String>Backend ids tried in order after the bound backend; at most 4, none repeated, never the bound backend.
on: Vec<FailureClass>Classes that move the request to the next backend.
Implementations§
Trait Implementations§
Source§impl Clone for FallbackPolicy
impl Clone for FallbackPolicy
Source§impl Debug for FallbackPolicy
impl Debug for FallbackPolicy
Source§impl<'de> Deserialize<'de> for FallbackPolicy
impl<'de> Deserialize<'de> for FallbackPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FallbackPolicy
Source§impl JsonSchema for FallbackPolicy
impl JsonSchema for FallbackPolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FallbackPolicy
impl PartialEq for FallbackPolicy
Source§impl Serialize for FallbackPolicy
impl Serialize for FallbackPolicy
impl StructuralPartialEq for FallbackPolicy
Auto Trait Implementations§
impl Freeze for FallbackPolicy
impl RefUnwindSafe for FallbackPolicy
impl Send for FallbackPolicy
impl Sync for FallbackPolicy
impl Unpin for FallbackPolicy
impl UnsafeUnpin for FallbackPolicy
impl UnwindSafe for FallbackPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more