Struct ys_core::SnapShotDirectory
source · pub struct SnapShotDirectory {
pub root: BTreeMap<String, DirectoryEntry>,
}
Expand description
A directory tree, with ObjectID
s at the leaves.
Fields§
§root: BTreeMap<String, DirectoryEntry>
Implementations§
source§impl SnapShotDirectory
impl SnapShotDirectory
sourcepub fn difference(&self, other: &SnapShotDirectory) -> SnapShotDifference
pub fn difference(&self, other: &SnapShotDirectory) -> SnapShotDifference
Compute the diff between this directory structure and the one which is currently located at the path.
source§impl SnapShotDirectory
impl SnapShotDirectory
pub fn new<Store: ObjectStore>( dir: &Path, ignores: &Ignores, store: &mut Store ) -> Result<Box<Self>, Error<Store>>
Trait Implementations§
source§impl Clone for SnapShotDirectory
impl Clone for SnapShotDirectory
source§fn clone(&self) -> SnapShotDirectory
fn clone(&self) -> SnapShotDirectory
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 SnapShotDirectory
impl Debug for SnapShotDirectory
source§impl Default for SnapShotDirectory
impl Default for SnapShotDirectory
source§fn default() -> SnapShotDirectory
fn default() -> SnapShotDirectory
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SnapShotDirectory
impl<'de> Deserialize<'de> for SnapShotDirectory
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 SnapShotDirectory
impl PartialEq for SnapShotDirectory
source§fn eq(&self, other: &SnapShotDirectory) -> bool
fn eq(&self, other: &SnapShotDirectory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SnapShotDirectory
impl Serialize for SnapShotDirectory
impl Eq for SnapShotDirectory
impl StructuralPartialEq for SnapShotDirectory
Auto Trait Implementations§
impl Freeze for SnapShotDirectory
impl RefUnwindSafe for SnapShotDirectory
impl Send for SnapShotDirectory
impl Sync for SnapShotDirectory
impl Unpin for SnapShotDirectory
impl UnwindSafe for SnapShotDirectory
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