pub enum BytesEncoding {
Auto,
Base64,
ByteArray,
Stfu8,
StringLossy,
}
Expand description
How to encode bytes fields when converting to JSON.
Variants§
Auto
Encode bytes as a string if valid UTF-8, otherwise as base64.
Base64
Encode bytes as base64 string.
ByteArray
Encode bytes as a JSON array of numbers.
Stfu8
Encode bytes as stfu8 encoded string.
StringLossy
Encode bytes as a UTF-8 lossy string.
Trait Implementations§
Source§impl Clone for BytesEncoding
impl Clone for BytesEncoding
Source§fn clone(&self) -> BytesEncoding
fn clone(&self) -> BytesEncoding
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 BytesEncoding
impl Debug for BytesEncoding
Source§impl Default for BytesEncoding
impl Default for BytesEncoding
Source§fn default() -> BytesEncoding
fn default() -> BytesEncoding
Returns the “default value” for a type. Read more
Source§impl Hash for BytesEncoding
impl Hash for BytesEncoding
Source§impl PartialEq for BytesEncoding
impl PartialEq for BytesEncoding
impl Copy for BytesEncoding
impl Eq for BytesEncoding
impl StructuralPartialEq for BytesEncoding
Auto Trait Implementations§
impl Freeze for BytesEncoding
impl RefUnwindSafe for BytesEncoding
impl Send for BytesEncoding
impl Sync for BytesEncoding
impl Unpin for BytesEncoding
impl UnwindSafe for BytesEncoding
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