pub enum Charset {
Utf8Any = 0,
AsciiPrintableNoQuoteBackslash = 1,
Utf8CountedCodepoints = 2,
}Expand description
The byte alphabet a bounded string is drawn from. The discriminant is the stable wire/hash code; variants are append-only (a reorder is a wire break and bumps the envelope format).
Variants§
Utf8Any = 0
Any UTF-8 body (no length enforcement in this profile).
AsciiPrintableNoQuoteBackslash = 1
Printable ASCII excluding " and \, where one code point equals one byte.
Utf8CountedCodepoints = 2
Full JSON-string alphabet where regex denotes one code point, so {min,max} counts them.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Charset
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Charset
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
impl Copy for Charset
impl Eq for Charset
impl StructuralPartialEq for Charset
Auto Trait Implementations§
impl Freeze for Charset
impl RefUnwindSafe for Charset
impl Send for Charset
impl Sync for Charset
impl Unpin for Charset
impl UnsafeUnpin for Charset
impl UnwindSafe for Charset
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