pub enum SchemaTypeSet {
Single(Type),
Multiple(Vec<Type>),
}Expand description
Set of schema types.
Variants§
Implementations§
Source§impl TypeSet
impl TypeSet
Sourcepub fn contains(&self, type_: Type) -> bool
pub fn contains(&self, type_: Type) -> bool
Returns true if this type-set contains the given type.
Sourcepub fn is_object_or_nullable_object(&self) -> bool
pub fn is_object_or_nullable_object(&self) -> bool
Returns true if this type-set is object or [object, 'null'].
Sourcepub fn is_array_or_nullable_array(&self) -> bool
pub fn is_array_or_nullable_array(&self) -> bool
Returns true if this type-set is array or [array, 'null'].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeSet
impl<'de> Deserialize<'de> for TypeSet
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 StructuralPartialEq for TypeSet
Auto Trait Implementations§
impl Freeze for TypeSet
impl RefUnwindSafe for TypeSet
impl Send for TypeSet
impl Sync for TypeSet
impl Unpin for TypeSet
impl UnsafeUnpin for TypeSet
impl UnwindSafe for TypeSet
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