[−][src]Struct zbox::RepoInfo
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.
Methods
impl RepoInfo
[src]
pub fn volume_id(&self) -> &Eid
[src]
Returns the unique volume id of this repository.
pub fn version(&self) -> String
[src]
Returns repository version as string.
This is the string representation of the repository version, for
example, 0.6.0
.
pub fn uri(&self) -> &str
[src]
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.
pub fn ops_limit(&self) -> OpsLimit
[src]
Returns the operation limit for repository password hash.
pub fn mem_limit(&self) -> MemLimit
[src]
Returns the memory limit for repository password hash
pub fn cipher(&self) -> Cipher
[src]
Returns repository password encryption cipher.
pub fn compress(&self) -> bool
[src]
Returns whether compression is enabled.
pub fn version_limit(&self) -> u8
[src]
Returns the default maximum number of file versions.
pub fn dedup_chunk(&self) -> bool
[src]
Returns whether the file data chunk deduplication is enabled.
pub fn is_read_only(&self) -> bool
[src]
Returns whether this repository is read-only.
pub fn created_at(&self) -> SystemTime
[src]
Returns the creation time of this repository.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RepoInfo
impl Send for RepoInfo
impl Sync for RepoInfo
impl Unpin for RepoInfo
impl UnwindSafe for RepoInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,