#[non_exhaustive]pub struct RenameObjectParams {
pub if_none_match: Option<String>,
pub if_match: Option<ETag>,
pub if_source_match: Option<ETag>,
pub client_token: Option<String>,
pub custom_headers: Vec<(String, String)>,
}Expand description
Parameters to a rename_object request
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.if_none_match: Option<String>Can be set to * to disable overwrite
if_match: Option<ETag>Optional ETag that the destination must match
if_source_match: Option<ETag>Optional ETag that the source must match
client_token: Option<String>Idempotency token
custom_headers: Vec<(String, String)>Can be used for custom headers
Implementations§
Source§impl RenameObjectParams
impl RenameObjectParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a default RenameObjectParams.
Sourcepub fn if_none_match(self, value: Option<String>) -> Self
pub fn if_none_match(self, value: Option<String>) -> Self
Set if-none-match header
Sourcepub fn if_source_match(self, value: Option<ETag>) -> Self
pub fn if_source_match(self, value: Option<ETag>) -> Self
Set if-source-match header
Sourcepub fn client_token(self, value: Option<String>) -> Self
pub fn client_token(self, value: Option<String>) -> Self
Set idempotency token
Sourcepub fn custom_headers(self, value: Vec<(String, String)>) -> Self
pub fn custom_headers(self, value: Vec<(String, String)>) -> Self
Set custom headers
Trait Implementations§
Source§impl Clone for RenameObjectParams
impl Clone for RenameObjectParams
Source§fn clone(&self) -> RenameObjectParams
fn clone(&self) -> RenameObjectParams
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 RenameObjectParams
impl Debug for RenameObjectParams
Source§impl Default for RenameObjectParams
impl Default for RenameObjectParams
Source§fn default() -> RenameObjectParams
fn default() -> RenameObjectParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenameObjectParams
impl RefUnwindSafe for RenameObjectParams
impl Send for RenameObjectParams
impl Sync for RenameObjectParams
impl Unpin for RenameObjectParams
impl UnwindSafe for RenameObjectParams
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