pub struct ConstSchema {
pub value: Value,
pub metadata: SchemaMetadata,
}Expand description
Const schema (single fixed value)
Fields§
§value: Value§metadata: SchemaMetadataTrait Implementations§
Source§impl Clone for ConstSchema
impl Clone for ConstSchema
Source§fn clone(&self) -> ConstSchema
fn clone(&self) -> ConstSchema
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 ConstSchema
impl Debug for ConstSchema
Source§impl Default for ConstSchema
impl Default for ConstSchema
Source§fn default() -> ConstSchema
fn default() -> ConstSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstSchema
impl<'de> Deserialize<'de> for ConstSchema
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 PartialEq for ConstSchema
impl PartialEq for ConstSchema
Source§impl Serialize for ConstSchema
impl Serialize for ConstSchema
impl StructuralPartialEq for ConstSchema
Auto Trait Implementations§
impl Freeze for ConstSchema
impl RefUnwindSafe for ConstSchema
impl Send for ConstSchema
impl Sync for ConstSchema
impl Unpin for ConstSchema
impl UnwindSafe for ConstSchema
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