pub struct EngineSnapshotFile {
pub path: PathBuf,
pub sha256: [u8; 32],
pub data: Vec<u8>,
}Expand description
One required file of an EngineSnapshot (run, index, catalog checkpoint,
WAL segment): its database-relative path, content hash, and bytes.
Fields§
§path: PathBufDatabase-relative path (validated: plain relative, no ..).
sha256: [u8; 32]SHA-256 over data.
data: Vec<u8>File content.
Trait Implementations§
Source§impl Clone for EngineSnapshotFile
impl Clone for EngineSnapshotFile
Source§fn clone(&self) -> EngineSnapshotFile
fn clone(&self) -> EngineSnapshotFile
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 EngineSnapshotFile
impl Debug for EngineSnapshotFile
Source§impl<'de> Deserialize<'de> for EngineSnapshotFile
impl<'de> Deserialize<'de> for EngineSnapshotFile
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 EngineSnapshotFile
impl RefUnwindSafe for EngineSnapshotFile
impl Send for EngineSnapshotFile
impl Sync for EngineSnapshotFile
impl Unpin for EngineSnapshotFile
impl UnsafeUnpin for EngineSnapshotFile
impl UnwindSafe for EngineSnapshotFile
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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