pub struct SnapshotStore {
pub snapshots: Vec<Snapshot>,
}Expand description
Snapshot storage
Fields§
§snapshots: Vec<Snapshot>Implementations§
Source§impl SnapshotStore
impl SnapshotStore
pub fn new() -> Self
pub fn find_snapshot(&self, name: &str) -> Option<&Snapshot>
pub fn add_snapshot(&mut self, snapshot: Snapshot)
pub fn delete_snapshot(&mut self, name: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for SnapshotStore
impl Clone for SnapshotStore
Source§fn clone(&self) -> SnapshotStore
fn clone(&self) -> SnapshotStore
Returns a duplicate 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 SnapshotStore
impl Debug for SnapshotStore
Source§impl Default for SnapshotStore
impl Default for SnapshotStore
Source§fn default() -> SnapshotStore
fn default() -> SnapshotStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotStore
impl<'de> Deserialize<'de> for SnapshotStore
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
Auto Trait Implementations§
impl Freeze for SnapshotStore
impl RefUnwindSafe for SnapshotStore
impl Send for SnapshotStore
impl Sync for SnapshotStore
impl Unpin for SnapshotStore
impl UnwindSafe for SnapshotStore
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