pub struct StringSchema {
pub default: Option<String>,
pub description: Option<String>,
pub format: Option<StringSchemaFormat>,
pub max_length: Option<i64>,
pub min_length: Option<i64>,
pub title: Option<String>,
pub type: StringType,
}Fields§
§default: Option<String>§description: Option<String>§format: Option<StringSchemaFormat>§max_length: Option<i64>§min_length: Option<i64>§title: Option<String>§type: StringTypeTrait Implementations§
Source§impl Clone for StringSchema
impl Clone for StringSchema
Source§impl Debug for StringSchema
impl Debug for StringSchema
Source§impl Default for StringSchema
impl Default for StringSchema
Source§impl<'de> Deserialize<'de> for StringSchema
impl<'de> Deserialize<'de> for StringSchema
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<StringSchema> for PrimitiveSchemaDefinition
impl From<StringSchema> for PrimitiveSchemaDefinition
Source§fn from(v: StringSchema) -> Self
fn from(v: StringSchema) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StringSchema
impl PartialEq for StringSchema
Source§impl Serialize for StringSchema
impl Serialize for StringSchema
impl StructuralPartialEq for StringSchema
Auto Trait Implementations§
impl Freeze for StringSchema
impl RefUnwindSafe for StringSchema
impl Send for StringSchema
impl Sync for StringSchema
impl Unpin for StringSchema
impl UnsafeUnpin for StringSchema
impl UnwindSafe for StringSchema
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