pub struct B2UpdateFileRetentionBody {
pub file_name: String,
pub file_id: String,
pub file_retention: B2BucketFileRetention,
pub bypass_governance: Option<bool>,
}Fields§
§file_name: StringThe name of the file.
file_id: StringThe ID of the file.
file_retention: B2BucketFileRetentionSpecifies the file retention settings for Backblaze B2 to use for this file. See Object Lock for details.
bypass_governance: Option<bool>Must be specified and set to true if deleting an existing governance mode retention setting or shortening an existing governance mode retention period. See Object Lock for details.
Implementations§
Source§impl B2UpdateFileRetentionBody
impl B2UpdateFileRetentionBody
Sourcepub fn builder() -> B2UpdateFileRetentionBodyBuilder<((), (), (), ())>
pub fn builder() -> B2UpdateFileRetentionBodyBuilder<((), (), (), ())>
Create a builder for building B2UpdateFileRetentionBody.
On the builder, call .file_name(...), .file_id(...), .file_retention(...), .bypass_governance(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of B2UpdateFileRetentionBody.
Trait Implementations§
Source§impl Clone for B2UpdateFileRetentionBody
impl Clone for B2UpdateFileRetentionBody
Source§fn clone(&self) -> B2UpdateFileRetentionBody
fn clone(&self) -> B2UpdateFileRetentionBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for B2UpdateFileRetentionBody
impl Debug for B2UpdateFileRetentionBody
Auto Trait Implementations§
impl Freeze for B2UpdateFileRetentionBody
impl RefUnwindSafe for B2UpdateFileRetentionBody
impl Send for B2UpdateFileRetentionBody
impl Sync for B2UpdateFileRetentionBody
impl Unpin for B2UpdateFileRetentionBody
impl UnwindSafe for B2UpdateFileRetentionBody
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