Struct b2_client::bucket::FileLockConfiguration
source · [−]pub struct FileLockConfiguration { /* private fields */ }Expand description
Information from B2 concerning a file’s retention settings.
Implementations
sourceimpl FileLockConfiguration
impl FileLockConfiguration
sourcepub fn lock_is_enabled(&self) -> Option<bool>
pub fn lock_is_enabled(&self) -> Option<bool>
Check whether a file lock is enabled.
If not authorized to read the file lock configuration, returns None.
sourcepub fn retention_policy(&self) -> Option<FileRetentionPolicy>
pub fn retention_policy(&self) -> Option<FileRetentionPolicy>
Get the file lock’s retention policy.
If not authorized to read the file lock configuration, returns None.
Trait Implementations
sourceimpl Debug for FileLockConfiguration
impl Debug for FileLockConfiguration
sourceimpl<'de> Deserialize<'de> for FileLockConfiguration
impl<'de> Deserialize<'de> for FileLockConfiguration
sourcefn 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 RefUnwindSafe for FileLockConfiguration
impl Send for FileLockConfiguration
impl Sync for FileLockConfiguration
impl Unpin for FileLockConfiguration
impl UnwindSafe for FileLockConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more