pub struct SkeletonV1(pub Skeleton);
Expand description
This struct is a public wrapper around the internal Skeleton
struct. This allows
access to the serialization and deserialization capabilities, without exposing the
internals of the skeleton machinery.
The Skeleton
is an “exotic type” in the serialization process, and handles its own
custom serialization practices.
Tuple Fields
0: Skeleton
Trait Implementations
sourceimpl Clone for SkeletonV1
impl Clone for SkeletonV1
sourcefn clone(&self) -> SkeletonV1
fn clone(&self) -> SkeletonV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SkeletonV1
impl Debug for SkeletonV1
sourceimpl<'de> Deserialize<'de> for SkeletonV1
impl<'de> Deserialize<'de> for SkeletonV1
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SkeletonV1, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SkeletonV1, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for SkeletonV1
impl Ord for SkeletonV1
sourceimpl PartialEq<SkeletonV1> for SkeletonV1
impl PartialEq<SkeletonV1> for SkeletonV1
sourcefn eq(&self, other: &SkeletonV1) -> bool
fn eq(&self, other: &SkeletonV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SkeletonV1) -> bool
fn ne(&self, other: &SkeletonV1) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SkeletonV1> for SkeletonV1
impl PartialOrd<SkeletonV1> for SkeletonV1
sourcefn partial_cmp(&self, other: &SkeletonV1) -> Option<Ordering>
fn partial_cmp(&self, other: &SkeletonV1) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for SkeletonV1
impl Serialize for SkeletonV1
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl<'_> TryFrom<&'_ str> for SkeletonV1
impl<'_> TryFrom<&'_ str> for SkeletonV1
type Error = SkeletonError
type Error = SkeletonError
The type returned in the event of a conversion error.
sourcefn try_from(
skeleton_string: &str
) -> Result<SkeletonV1, <SkeletonV1 as TryFrom<&'_ str>>::Error>
fn try_from(
skeleton_string: &str
) -> Result<SkeletonV1, <SkeletonV1 as TryFrom<&'_ str>>::Error>
Performs the conversion.
impl Eq for SkeletonV1
impl StructuralEq for SkeletonV1
impl StructuralPartialEq for SkeletonV1
Auto Trait Implementations
impl RefUnwindSafe for SkeletonV1
impl Send for SkeletonV1
impl Sync for SkeletonV1
impl Unpin for SkeletonV1
impl UnwindSafe for SkeletonV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more