pub struct NamedRootManifest {
pub name: Vec<u8>,
pub manifest: RootManifest,
}Expand description
A named root manifest returned by manifest-store scans.
Fields§
§name: Vec<u8>Durable name of the root manifest.
manifest: RootManifestManifest stored under name.
Implementations§
Source§impl NamedRootManifest
impl NamedRootManifest
Sourcepub fn new(name: Vec<u8>, manifest: RootManifest) -> Self
pub fn new(name: Vec<u8>, manifest: RootManifest) -> Self
Create a named manifest entry.
Sourcepub fn into_named_root(self) -> NamedRoot
pub fn into_named_root(self) -> NamedRoot
Convert this manifest entry into a tree-oriented named root.
Sourcepub fn to_named_root(&self) -> NamedRoot
pub fn to_named_root(&self) -> NamedRoot
Convert this manifest entry into a cloned tree-oriented named root.
Trait Implementations§
Source§impl Clone for NamedRootManifest
impl Clone for NamedRootManifest
Source§fn clone(&self) -> NamedRootManifest
fn clone(&self) -> NamedRootManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NamedRootManifest
impl Debug for NamedRootManifest
Source§impl PartialEq for NamedRootManifest
impl PartialEq for NamedRootManifest
impl StructuralPartialEq for NamedRootManifest
Auto Trait Implementations§
impl Freeze for NamedRootManifest
impl RefUnwindSafe for NamedRootManifest
impl Send for NamedRootManifest
impl Sync for NamedRootManifest
impl Unpin for NamedRootManifest
impl UnsafeUnpin for NamedRootManifest
impl UnwindSafe for NamedRootManifest
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