pub enum SerializationMode {
Native,
CanonicalTower,
}
Expand description
Specifies serialization/deserialization behavior
Variants§
Native
This mode is faster, and serializes to the underlying bytes
CanonicalTower
Will first convert any tower fields into the Fan-Paar field equivalent
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 Debug for SerializationMode
impl Debug for SerializationMode
Source§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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more