pub enum PresentWhen {
AnyNonNull(Vec<String>),
AllNonNull(Vec<String>),
All(Vec<PresentWhen>),
Any(Vec<PresentWhen>),
}Expand description
A record presence predicate (spec 032, 3.4.2). Each list is non-empty; the canonical form sorts and deduplicates every field list.
Variants§
Implementations§
Source§impl PresentWhen
impl PresentWhen
Trait Implementations§
Source§impl Clone for PresentWhen
impl Clone for PresentWhen
Source§impl Debug for PresentWhen
impl Debug for PresentWhen
Source§impl<'de> Deserialize<'de> for PresentWhen
impl<'de> Deserialize<'de> for PresentWhen
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 PresentWhen
Source§impl JsonSchema for PresentWhen
impl JsonSchema for PresentWhen
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 PresentWhen
impl PartialEq for PresentWhen
Source§impl Serialize for PresentWhen
impl Serialize for PresentWhen
impl StructuralPartialEq for PresentWhen
Auto Trait Implementations§
impl Freeze for PresentWhen
impl RefUnwindSafe for PresentWhen
impl Send for PresentWhen
impl Sync for PresentWhen
impl Unpin for PresentWhen
impl UnsafeUnpin for PresentWhen
impl UnwindSafe for PresentWhen
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