pub struct IfThenElseSchema {
pub if_schema: Box<YamlSchema>,
pub then_schema: Option<Box<YamlSchema>>,
pub else_schema: Option<Box<YamlSchema>>,
}Expand description
Conditional schema: if outcome selects then or else; if errors are not asserted on the parent.
Fields§
§if_schema: Box<YamlSchema>§then_schema: Option<Box<YamlSchema>>§else_schema: Option<Box<YamlSchema>>Trait Implementations§
Source§impl Debug for IfThenElseSchema
impl Debug for IfThenElseSchema
Source§impl Display for IfThenElseSchema
impl Display for IfThenElseSchema
Source§impl PartialEq for IfThenElseSchema
impl PartialEq for IfThenElseSchema
Source§impl<'r> TryFrom<&LinkedHashMap<MarkedYaml<'r>, MarkedYaml<'r>>> for IfThenElseSchema
impl<'r> TryFrom<&LinkedHashMap<MarkedYaml<'r>, MarkedYaml<'r>>> for IfThenElseSchema
Source§fn try_from(mapping: &AnnotatedMapping<'r, MarkedYaml<'r>>) -> Result<Self>
fn try_from(mapping: &AnnotatedMapping<'r, MarkedYaml<'r>>) -> Result<Self>
Performs the conversion.
Source§impl<'r> TryFrom<&MarkedYaml<'r>> for IfThenElseSchema
impl<'r> TryFrom<&MarkedYaml<'r>> for IfThenElseSchema
Source§impl Validator for IfThenElseSchema
impl Validator for IfThenElseSchema
impl StructuralPartialEq for IfThenElseSchema
Auto Trait Implementations§
impl Freeze for IfThenElseSchema
impl RefUnwindSafe for IfThenElseSchema
impl Send for IfThenElseSchema
impl Sync for IfThenElseSchema
impl Unpin for IfThenElseSchema
impl UnsafeUnpin for IfThenElseSchema
impl UnwindSafe for IfThenElseSchema
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.