Enum edres::SerdeSupport
source · [−]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
sourceimpl Clone for SerdeSupport
impl Clone for SerdeSupport
sourcefn clone(&self) -> SerdeSupport
fn clone(&self) -> SerdeSupport
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SerdeSupport
impl Debug for SerdeSupport
sourceimpl Default for SerdeSupport
impl Default for SerdeSupport
sourcefn default() -> SerdeSupport
fn default() -> SerdeSupport
Examples
assert_eq!(SerdeSupport::default(), SerdeSupport::No);
sourceimpl PartialEq<SerdeSupport> for SerdeSupport
impl PartialEq<SerdeSupport> for SerdeSupport
sourcefn eq(&self, other: &SerdeSupport) -> bool
fn eq(&self, other: &SerdeSupport) -> bool
impl Copy for SerdeSupport
impl Eq for SerdeSupport
impl StructuralEq for SerdeSupport
impl StructuralPartialEq for SerdeSupport
Auto Trait Implementations
impl RefUnwindSafe for SerdeSupport
impl Send for SerdeSupport
impl Sync for SerdeSupport
impl Unpin for SerdeSupport
impl UnwindSafe for SerdeSupport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.