pub struct GenericManifest {
pub type: ManifestType,
}Expand description
A manifest where the only field is the type of the manifest itself. Useful for deserializing once into this type to determine which manifest to properly deserialize into.
Fields§
§type: ManifestTypeTrait Implementations§
Source§impl Clone for GenericManifest
impl Clone for GenericManifest
Source§fn clone(&self) -> GenericManifest
fn clone(&self) -> GenericManifest
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 GenericManifest
impl Debug for GenericManifest
Source§impl Hash for GenericManifest
impl Hash for GenericManifest
Source§impl Ord for GenericManifest
impl Ord for GenericManifest
Source§fn cmp(&self, other: &GenericManifest) -> Ordering
fn cmp(&self, other: &GenericManifest) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GenericManifest
impl PartialEq for GenericManifest
Source§impl PartialOrd for GenericManifest
impl PartialOrd for GenericManifest
impl Eq for GenericManifest
impl StructuralPartialEq for GenericManifest
Auto Trait Implementations§
impl Freeze for GenericManifest
impl RefUnwindSafe for GenericManifest
impl Send for GenericManifest
impl Sync for GenericManifest
impl Unpin for GenericManifest
impl UnwindSafe for GenericManifest
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