pub struct DirManifest {
pub stream: String,
pub entries: Vec<DirEntry>,
}Expand description
A kopia directory manifest: what kopia show <dir-object-id> emits —
{"stream":"kopia:directory","entries":[…]}. (kopia show on a file
object streams the file’s raw bytes instead, so callers must check
DirEntry::entry_type before showing an object as a directory.)
Fields§
§stream: StringThe manifest stream marker; "kopia:directory" for directory objects.
entries: Vec<DirEntry>The directory’s entries, in kopia’s on-manifest order.
Trait Implementations§
Source§impl Clone for DirManifest
impl Clone for DirManifest
Source§fn clone(&self) -> DirManifest
fn clone(&self) -> DirManifest
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 DirManifest
impl Debug for DirManifest
Source§impl<'de> Deserialize<'de> for DirManifest
impl<'de> Deserialize<'de> for DirManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DirManifest
impl PartialEq for DirManifest
Source§fn eq(&self, other: &DirManifest) -> bool
fn eq(&self, other: &DirManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DirManifest
impl Serialize for DirManifest
impl Eq for DirManifest
impl StructuralPartialEq for DirManifest
Auto Trait Implementations§
impl Freeze for DirManifest
impl RefUnwindSafe for DirManifest
impl Send for DirManifest
impl Sync for DirManifest
impl Unpin for DirManifest
impl UnsafeUnpin for DirManifest
impl UnwindSafe for DirManifest
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