Struct b2_client::file::FileRetention
source · [−]pub struct FileRetention { /* private fields */ }Expand description
The retention settings for a file.
Implementations
sourceimpl FileRetention
impl FileRetention
sourcepub fn settings(&self) -> Option<FileRetentionSetting>
pub fn settings(&self) -> Option<FileRetentionSetting>
Get the file retention settings.
If not authorized to read the settings, returns None.
Trait Implementations
sourceimpl Debug for FileRetention
impl Debug for FileRetention
sourceimpl<'de> Deserialize<'de> for FileRetention
impl<'de> Deserialize<'de> for FileRetention
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 FileRetention
impl Send for FileRetention
impl Sync for FileRetention
impl Unpin for FileRetention
impl UnwindSafe for FileRetention
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