pub struct BackupSegment {
pub kind: BackupKind,
pub filename: String,
pub start_epoch: EpochId,
pub end_epoch: EpochId,
pub checksum: u32,
pub size_bytes: u64,
pub created_at_ms: u64,
}Expand description
Metadata for a single backup segment (full or incremental).
Fields§
§kind: BackupKindSegment type.
filename: StringFile name (relative to backup directory).
start_epoch: EpochIdStart epoch (inclusive).
end_epoch: EpochIdEnd epoch (inclusive).
checksum: u32CRC-32 checksum of the segment file.
size_bytes: u64Size in bytes.
created_at_ms: u64Timestamp when this backup was created (ms since UNIX epoch).
Trait Implementations§
Source§impl Clone for BackupSegment
impl Clone for BackupSegment
Source§fn clone(&self) -> BackupSegment
fn clone(&self) -> BackupSegment
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 BackupSegment
impl Debug for BackupSegment
Source§impl<'de> Deserialize<'de> for BackupSegment
impl<'de> Deserialize<'de> for BackupSegment
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 BackupSegment
impl RefUnwindSafe for BackupSegment
impl Send for BackupSegment
impl Sync for BackupSegment
impl Unpin for BackupSegment
impl UnsafeUnpin for BackupSegment
impl UnwindSafe for BackupSegment
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