pub enum SerdeSupport {
No,
Yes,
Mixed {
serialize: bool,
deserialize: bool,
},
}Expand description
Options for serde support.
Variants§
No
Do not derive any serde traits for the struct.
Yes
Derive Serialize and Deserialize for the struct.
Mixed
Derive any combination of Serialize and Deserialize
for the struct.
Trait Implementations§
Source§impl Clone for SerdeSupport
impl Clone for SerdeSupport
Source§fn clone(&self) -> SerdeSupport
fn clone(&self) -> SerdeSupport
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 SerdeSupport
impl Debug for SerdeSupport
Source§impl Default for SerdeSupport
impl Default for SerdeSupport
Source§fn default() -> SerdeSupport
fn default() -> SerdeSupport
§Examples
assert_eq!(SerdeSupport::default(), SerdeSupport::No);Source§impl PartialEq for SerdeSupport
impl PartialEq for SerdeSupport
impl Copy for SerdeSupport
impl Eq for SerdeSupport
impl StructuralPartialEq for SerdeSupport
Auto Trait Implementations§
impl Freeze for SerdeSupport
impl RefUnwindSafe for SerdeSupport
impl Send for SerdeSupport
impl Sync for SerdeSupport
impl Unpin for SerdeSupport
impl UnwindSafe for SerdeSupport
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§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.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.