pub enum SerializationMode {
Full,
Hash,
}Expand description
Signal to a serializable object how much of its data should be serialized
Variants§
Full
Serialize everything sufficiently to fully reconstruct the object
Hash
Serialize the data that defines the object
Implementations§
Source§impl SerializationMode
impl SerializationMode
Sourcepub fn is_hash_mode(&self) -> bool
pub fn is_hash_mode(&self) -> bool
Hash mode?
Trait Implementations§
Source§impl Clone for SerializationMode
impl Clone for SerializationMode
Source§fn clone(&self) -> SerializationMode
fn clone(&self) -> SerializationMode
Returns a copy 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 PartialEq for SerializationMode
impl PartialEq for SerializationMode
impl Copy for SerializationMode
impl Eq for SerializationMode
impl StructuralPartialEq for SerializationMode
Auto Trait Implementations§
impl Freeze for SerializationMode
impl RefUnwindSafe for SerializationMode
impl Send for SerializationMode
impl Sync for SerializationMode
impl Unpin for SerializationMode
impl UnwindSafe for SerializationMode
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.Source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.