pub struct Text<const MIN: usize, const MAX: usize>(/* private fields */);Expand description
UTF-8 byte bounds, applied after JSON unescaping.
Implementations§
Trait Implementations§
Source§impl<'de, const MIN: usize, const MAX: usize> Deserialize<'de> for Text<MIN, MAX>
impl<'de, const MIN: usize, const MAX: usize> Deserialize<'de> for Text<MIN, MAX>
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<const MIN: usize, const MAX: usize> Eq for Text<MIN, MAX>
Source§impl<const MIN: usize, const MAX: usize> JsonSchema for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> JsonSchema for Text<MIN, MAX>
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl<const MIN: usize, const MAX: usize> Ord for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> Ord for Text<MIN, MAX>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<const MIN: usize, const MAX: usize> PartialOrd for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> PartialOrd for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> StructuralPartialEq for Text<MIN, MAX>
Auto Trait Implementations§
impl<const MIN: usize, const MAX: usize> Freeze for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> RefUnwindSafe for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> Send for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> Sync for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> Unpin for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> UnsafeUnpin for Text<MIN, MAX>
impl<const MIN: usize, const MAX: usize> UnwindSafe for Text<MIN, MAX>
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