pub struct B2DeleteFileVersionBody {
pub file_name: String,
pub file_id: String,
pub bypass_governance: Option<bool>,
}Fields§
§file_name: StringThe name of the file.
file_id: StringThe ID of the file, as returned by b2_upload_file, b2_list_file_names, or b2_list_file_versions.
bypass_governance: Option<bool>Must be specified and set to true if deleting a file version protected by Object Lock governance mode retention settings.
Setting the value requires the bypassGovernance application key capability.
See Object Lock for more information.
Implementations§
Source§impl B2DeleteFileVersionBody
impl B2DeleteFileVersionBody
Sourcepub fn builder() -> B2DeleteFileVersionBodyBuilder<((), (), ())>
pub fn builder() -> B2DeleteFileVersionBodyBuilder<((), (), ())>
Create a builder for building B2DeleteFileVersionBody.
On the builder, call .file_name(...), .file_id(...), .bypass_governance(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of B2DeleteFileVersionBody.
Trait Implementations§
Source§impl Clone for B2DeleteFileVersionBody
impl Clone for B2DeleteFileVersionBody
Source§fn clone(&self) -> B2DeleteFileVersionBody
fn clone(&self) -> B2DeleteFileVersionBody
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 B2DeleteFileVersionBody
impl Debug for B2DeleteFileVersionBody
Auto Trait Implementations§
impl Freeze for B2DeleteFileVersionBody
impl RefUnwindSafe for B2DeleteFileVersionBody
impl Send for B2DeleteFileVersionBody
impl Sync for B2DeleteFileVersionBody
impl Unpin for B2DeleteFileVersionBody
impl UnwindSafe for B2DeleteFileVersionBody
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