pub struct SchemaField { /* private fields */ }Implementations§
Source§impl SchemaField
impl SchemaField
pub fn new( name: impl Into<String>, schema: SchemaMetadata, required: bool, ) -> SchemaField
pub fn minimum(self, minimum: impl ToString) -> SchemaField
pub fn maximum(self, maximum: impl ToString) -> SchemaField
pub fn minimum_length(self, minimum: usize) -> SchemaField
pub fn maximum_length(self, maximum: usize) -> SchemaField
pub fn name(&self) -> &str
pub fn schema(&self) -> &SchemaMetadata
pub fn required(&self) -> bool
pub fn minimum_value(&self) -> Option<&str>
pub fn maximum_value(&self) -> Option<&str>
pub fn minimum_length_value(&self) -> Option<usize>
pub fn maximum_length_value(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for SchemaField
impl Clone for SchemaField
Source§fn clone(&self) -> SchemaField
fn clone(&self) -> SchemaField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaField
impl Debug for SchemaField
Source§impl PartialEq for SchemaField
impl PartialEq for SchemaField
impl StructuralPartialEq for SchemaField
Auto Trait Implementations§
impl Freeze for SchemaField
impl RefUnwindSafe for SchemaField
impl Send for SchemaField
impl Sync for SchemaField
impl Unpin for SchemaField
impl UnsafeUnpin for SchemaField
impl UnwindSafe for SchemaField
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