pub enum StringSchema {
Utf8 {
length: LengthEncoding<String>,
},
Binary {
inner: ArraySchema,
},
}
Expand description
The string schema to describe string values (further information on the module’s documentation).
Variants§
Trait Implementations§
Source§impl Clone for StringSchema
impl Clone for StringSchema
Source§fn clone(&self) -> StringSchema
fn clone(&self) -> StringSchema
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 StringSchema
impl Debug for StringSchema
Source§impl Decoder for StringSchema
impl Decoder 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 Encoder for StringSchema
impl Encoder for StringSchema
Source§impl From<StringSchema> for InnerSchema
impl From<StringSchema> for InnerSchema
Source§fn from(v: StringSchema) -> Self
fn from(v: StringSchema) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StringSchema
impl RefUnwindSafe for StringSchema
impl Send for StringSchema
impl Sync for StringSchema
impl Unpin 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