pub struct ContentFormat {
pub hash: String,
pub encryption: String,
pub version: u32,
pub epoch_parameters: Option<EpochParameters>,
}Expand description
Content format block from kopia repository status.
Fields§
§hash: StringHash algorithm, e.g. “BLAKE2B-256-128”.
encryption: StringEncryption algorithm, e.g. “AES256-GCM-HMAC-SHA256”.
version: u32Repository format version.
epoch_parameters: Option<EpochParameters>Epoch-manager parameters, when the repository uses the epoch index (format v2+).
Absent on older formats, hence Option.
Trait Implementations§
Source§impl Clone for ContentFormat
impl Clone for ContentFormat
Source§fn clone(&self) -> ContentFormat
fn clone(&self) -> ContentFormat
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 ContentFormat
impl Debug for ContentFormat
Source§impl<'de> Deserialize<'de> for ContentFormat
impl<'de> Deserialize<'de> for ContentFormat
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 ContentFormat
impl PartialEq for ContentFormat
Source§fn eq(&self, other: &ContentFormat) -> bool
fn eq(&self, other: &ContentFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentFormat
impl Serialize for ContentFormat
impl StructuralPartialEq for ContentFormat
Auto Trait Implementations§
impl Freeze for ContentFormat
impl RefUnwindSafe for ContentFormat
impl Send for ContentFormat
impl Sync for ContentFormat
impl Unpin for ContentFormat
impl UnsafeUnpin for ContentFormat
impl UnwindSafe for ContentFormat
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