pub enum Condition {
Equals(EqualsCondition),
OneOf(OneOfCondition),
Exists(ExistsCondition),
}Variants§
Implementations§
Source§impl Condition
impl Condition
Sourcepub fn new_equals(f0: EqualsCondition) -> Self
pub fn new_equals(f0: EqualsCondition) -> Self
Constructs a new Condition::Equals.
Source§impl Condition
impl Condition
Sourcepub fn new_one_of(f0: OneOfCondition) -> Self
pub fn new_one_of(f0: OneOfCondition) -> Self
Constructs a new Condition::OneOf.
Source§impl Condition
impl Condition
Sourcepub fn new_exists(f0: ExistsCondition) -> Self
pub fn new_exists(f0: ExistsCondition) -> Self
Constructs a new Condition::Exists.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
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
Source§impl JsonSchema for Condition
impl JsonSchema for Condition
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 moreimpl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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