Struct RepoInfo

Source
pub struct RepoInfo { /* private fields */ }
Expand description

Information about a repository.

This structure is returned from the Repo::info represents known metadata about a repository such as its volume ID, version, URI, creation times and etc.

Implementations§

Source§

impl RepoInfo

Source

pub fn volume_id(&self) -> &Eid

Returns the unique volume id of this repository.

Source

pub fn version(&self) -> String

Returns repository version as string.

This is the string representation of the repository version, for example, 0.6.0.

Source

pub fn uri(&self) -> &str

Returns the repository URI string.

This string may contain confidential data for a particular storage, such as Zbox Cloud storage, you might need to mask it as your wish.

Source

pub fn ops_limit(&self) -> OpsLimit

Returns the operation limit for repository password hash.

Source

pub fn mem_limit(&self) -> MemLimit

Returns the memory limit for repository password hash

Source

pub fn cipher(&self) -> Cipher

Returns repository password encryption cipher.

Source

pub fn compress(&self) -> bool

Returns whether compression is enabled.

Source

pub fn version_limit(&self) -> u8

Returns the default maximum number of file versions.

Source

pub fn dedup_chunk(&self) -> bool

Returns whether the file data chunk deduplication is enabled.

Source

pub fn dedup_file(&self) -> bool

Returns whether the file deduplication is enabled.

Source

pub fn is_read_only(&self) -> bool

Returns whether this repository is read-only.

Source

pub fn created_at(&self) -> SystemTime

Returns the creation time of this repository.

Trait Implementations§

Source§

impl Debug for RepoInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.