pub struct ConstSchema { /* private fields */ }Expand description
A schema for a constant
Implementations§
Source§impl ConstSchema
impl ConstSchema
Sourcepub fn new(value: impl Into<SchemaLiteral>) -> Self
pub fn new(value: impl Into<SchemaLiteral>) -> Self
Create a new const schema
Trait 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
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