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
impl RepoInfo
Sourcepub fn version(&self) -> String
pub fn version(&self) -> String
Returns repository version as string.
This is the string representation of the repository version, for
example, 0.6.0
.
Sourcepub fn uri(&self) -> &str
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.
Sourcepub fn version_limit(&self) -> u8
pub fn version_limit(&self) -> u8
Returns the default maximum number of file versions.
Sourcepub fn dedup_chunk(&self) -> bool
pub fn dedup_chunk(&self) -> bool
Returns whether the file data chunk deduplication is enabled.
Sourcepub fn dedup_file(&self) -> bool
pub fn dedup_file(&self) -> bool
Returns whether the file deduplication is enabled.
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Returns whether this repository is read-only.
Sourcepub fn created_at(&self) -> SystemTime
pub fn created_at(&self) -> SystemTime
Returns the creation time of this repository.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoInfo
impl RefUnwindSafe for RepoInfo
impl Send for RepoInfo
impl Sync for RepoInfo
impl Unpin for RepoInfo
impl UnwindSafe for RepoInfo
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