pub struct SnapshotMeta {
pub id: String,
pub timestamp: u64,
pub path: String,
pub source_path: String,
pub sequence: u64,
pub files: Vec<SnapshotFile>,
pub total_size: u64,
pub snapshot_type: SnapshotType,
pub parent_id: Option<String>,
}Expand description
Snapshot metadata
Fields§
§id: StringUnique snapshot ID
timestamp: u64Timestamp when snapshot was created (Unix milliseconds)
path: StringPath where snapshot is stored
source_path: StringSource database path
sequence: u64Sequence number at snapshot time
files: Vec<SnapshotFile>List of files included in the snapshot
total_size: u64Total size in bytes
snapshot_type: SnapshotTypeSnapshot type (full or incremental)
parent_id: Option<String>Parent snapshot ID (for incremental snapshots)
Trait Implementations§
Source§impl Clone for SnapshotMeta
impl Clone for SnapshotMeta
Source§fn clone(&self) -> SnapshotMeta
fn clone(&self) -> SnapshotMeta
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 SnapshotMeta
impl Debug for SnapshotMeta
Source§impl<'de> Deserialize<'de> for SnapshotMeta
impl<'de> Deserialize<'de> for SnapshotMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SnapshotMeta
impl Serialize for SnapshotMeta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SnapshotMeta
impl RefUnwindSafe for SnapshotMeta
impl Send for SnapshotMeta
impl Sync for SnapshotMeta
impl Unpin for SnapshotMeta
impl UnwindSafe for SnapshotMeta
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