pub enum ByteStrategy {
String,
Base64,
VecU8,
}Expand description
Strategy for format: byte (base64-encoded binary on the wire).
Variants§
String
Base64
Vec<u8> round-tripped via an inlined base64_serde module
(default).
VecU8
Vec<u8> with no codec (caller responsible for encoding).
Trait Implementations§
Source§impl Clone for ByteStrategy
impl Clone for ByteStrategy
Source§fn clone(&self) -> ByteStrategy
fn clone(&self) -> ByteStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ByteStrategy
Source§impl Debug for ByteStrategy
impl Debug for ByteStrategy
Source§impl Default for ByteStrategy
impl Default for ByteStrategy
Source§fn default() -> ByteStrategy
fn default() -> ByteStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ByteStrategy
impl<'de> Deserialize<'de> for ByteStrategy
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
impl Eq for ByteStrategy
Source§impl PartialEq for ByteStrategy
impl PartialEq for ByteStrategy
Source§fn eq(&self, other: &ByteStrategy) -> bool
fn eq(&self, other: &ByteStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ByteStrategy
impl Serialize for ByteStrategy
impl StructuralPartialEq for ByteStrategy
Auto Trait Implementations§
impl Freeze for ByteStrategy
impl RefUnwindSafe for ByteStrategy
impl Send for ByteStrategy
impl Sync for ByteStrategy
impl Unpin for ByteStrategy
impl UnsafeUnpin for ByteStrategy
impl UnwindSafe for ByteStrategy
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.