pub enum BytesFormat {
Array,
Hex(HexBytesOptions),
}Expand description
Byte serialization format for JSON.
Variants§
Array
Serialize as a JSON array of numbers (e.g., [0, 255, 42]).
Hex(HexBytesOptions)
Serialize as a JSON string containing hex bytes (e.g., "0x00ff2a").
Trait Implementations§
Source§impl Clone for BytesFormat
impl Clone for BytesFormat
Source§fn clone(&self) -> BytesFormat
fn clone(&self) -> BytesFormat
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 BytesFormat
impl Debug for BytesFormat
Source§impl Default for BytesFormat
impl Default for BytesFormat
Source§fn default() -> BytesFormat
fn default() -> BytesFormat
Returns the “default value” for a type. Read more
Source§impl PartialEq for BytesFormat
impl PartialEq for BytesFormat
impl Copy for BytesFormat
impl Eq for BytesFormat
impl StructuralPartialEq for BytesFormat
Auto Trait Implementations§
impl Freeze for BytesFormat
impl RefUnwindSafe for BytesFormat
impl Send for BytesFormat
impl Sync for BytesFormat
impl Unpin for BytesFormat
impl UnsafeUnpin for BytesFormat
impl UnwindSafe for BytesFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.