pub enum BsonSchema {
BsonType(BsonTypedJsonSchema),
MultipleBsonType(MultipleBsonTypedJsonSchema),
AllOf(AllOfJsonSchema),
AnyOf(AnyOfJsonSchema),
OneOf(OneOfJsonSchema),
Exists,
}
Variants§
BsonType(BsonTypedJsonSchema)
MultipleBsonType(MultipleBsonTypedJsonSchema)
AllOf(AllOfJsonSchema)
AnyOf(AnyOfJsonSchema)
OneOf(OneOfJsonSchema)
Exists
Trait Implementations§
Source§impl Clone for BsonSchema
impl Clone for BsonSchema
Source§fn clone(&self) -> BsonSchema
fn clone(&self) -> BsonSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BsonSchema
impl Debug for BsonSchema
Source§impl Default for BsonSchema
impl Default for BsonSchema
Source§fn default() -> BsonSchema
fn default() -> BsonSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BsonSchema
impl<'de> Deserialize<'de> for BsonSchema
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 From<BsonSchema> for JsonSchema
impl From<BsonSchema> for JsonSchema
Source§fn from(value: BsonSchema) -> Self
fn from(value: BsonSchema) -> Self
Converts to this type from the input type.
Source§impl From<MongodbJsonSchema> for BsonSchema
impl From<MongodbJsonSchema> for BsonSchema
Source§fn from(value: MongodbJsonSchema) -> Self
fn from(value: MongodbJsonSchema) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BsonSchema
impl PartialEq for BsonSchema
Source§impl Serialize for BsonSchema
impl Serialize for BsonSchema
impl StructuralPartialEq for BsonSchema
Auto Trait Implementations§
impl Freeze for BsonSchema
impl RefUnwindSafe for BsonSchema
impl Send for BsonSchema
impl Sync for BsonSchema
impl Unpin for BsonSchema
impl UnwindSafe for BsonSchema
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