#[non_exhaustive]pub struct MoveObjectRequest {
pub bucket: String,
pub source_object: String,
pub destination_object: String,
pub if_source_generation_match: Option<i64>,
pub if_source_generation_not_match: Option<i64>,
pub if_source_metageneration_match: Option<i64>,
pub if_source_metageneration_not_match: Option<i64>,
pub if_generation_match: Option<i64>,
pub if_generation_not_match: Option<i64>,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
/* private fields */
}Expand description
Request message for MoveObject.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bucket: StringRequired. Name of the bucket in which the object resides.
source_object: StringRequired. Name of the source object.
destination_object: StringRequired. Name of the destination object.
if_source_generation_match: Option<i64>Optional. Makes the operation conditional on whether the source object’s
current generation matches the given value. if_source_generation_match
and if_source_generation_not_match conditions are mutually exclusive:
it’s an error for both of them to be set in the request.
if_source_generation_not_match: Option<i64>Optional. Makes the operation conditional on whether the source object’s
current generation does not match the given value.
if_source_generation_match and if_source_generation_not_match
conditions are mutually exclusive: it’s an error for both of them to be set
in the request.
if_source_metageneration_match: Option<i64>Optional. Makes the operation conditional on whether the source object’s
current metageneration matches the given value.
if_source_metageneration_match and if_source_metageneration_not_match
conditions are mutually exclusive: it’s an error for both of them to be set
in the request.
if_source_metageneration_not_match: Option<i64>Optional. Makes the operation conditional on whether the source object’s
current metageneration does not match the given value.
if_source_metageneration_match and if_source_metageneration_not_match
conditions are mutually exclusive: it’s an error for both of them to be set
in the request.
if_generation_match: Option<i64>Optional. Makes the operation conditional on whether the destination
object’s current generation matches the given value. Setting to 0 makes the
operation succeed only if there are no live versions of the object.
if_generation_match and if_generation_not_match conditions are mutually
exclusive: it’s an error for both of them to be set in the request.
if_generation_not_match: Option<i64>Optional. Makes the operation conditional on whether the destination
object’s current generation does not match the given value. If no live
object exists, the precondition fails. Setting to 0 makes the operation
succeed only if there is a live version of the object.
if_generation_match and if_generation_not_match conditions are mutually
exclusive: it’s an error for both of them to be set in the request.
if_metageneration_match: Option<i64>Optional. Makes the operation conditional on whether the destination
object’s current metageneration matches the given value.
if_metageneration_match and if_metageneration_not_match conditions are
mutually exclusive: it’s an error for both of them to be set in the
request.
if_metageneration_not_match: Option<i64>Optional. Makes the operation conditional on whether the destination
object’s current metageneration does not match the given value.
if_metageneration_match and if_metageneration_not_match conditions are
mutually exclusive: it’s an error for both of them to be set in the
request.
Implementations§
Source§impl MoveObjectRequest
impl MoveObjectRequest
pub fn new() -> Self
Sourcepub fn set_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_bucket<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_object<T: Into<String>>(self, v: T) -> Self
pub fn set_source_object<T: Into<String>>(self, v: T) -> Self
Sets the value of source_object.
§Example
let x = MoveObjectRequest::new().set_source_object("example");Sourcepub fn set_destination_object<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_object<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_object.
§Example
let x = MoveObjectRequest::new().set_destination_object("example");Sourcepub fn set_if_source_generation_match<T>(self, v: T) -> Self
pub fn set_if_source_generation_match<T>(self, v: T) -> Self
Sets the value of if_source_generation_match.
§Example
let x = MoveObjectRequest::new().set_if_source_generation_match(42);Sourcepub fn set_or_clear_if_source_generation_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_source_generation_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_source_generation_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_source_generation_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_source_generation_match(None::<i32>);Sourcepub fn set_if_source_generation_not_match<T>(self, v: T) -> Self
pub fn set_if_source_generation_not_match<T>(self, v: T) -> Self
Sets the value of if_source_generation_not_match.
§Example
let x = MoveObjectRequest::new().set_if_source_generation_not_match(42);Sourcepub fn set_or_clear_if_source_generation_not_match<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_if_source_generation_not_match<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of if_source_generation_not_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_source_generation_not_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_source_generation_not_match(None::<i32>);Sourcepub fn set_if_source_metageneration_match<T>(self, v: T) -> Self
pub fn set_if_source_metageneration_match<T>(self, v: T) -> Self
Sets the value of if_source_metageneration_match.
§Example
let x = MoveObjectRequest::new().set_if_source_metageneration_match(42);Sourcepub fn set_or_clear_if_source_metageneration_match<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_if_source_metageneration_match<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of if_source_metageneration_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_source_metageneration_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_source_metageneration_match(None::<i32>);Sourcepub fn set_if_source_metageneration_not_match<T>(self, v: T) -> Self
pub fn set_if_source_metageneration_not_match<T>(self, v: T) -> Self
Sets the value of if_source_metageneration_not_match.
§Example
let x = MoveObjectRequest::new().set_if_source_metageneration_not_match(42);Sourcepub fn set_or_clear_if_source_metageneration_not_match<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_if_source_metageneration_not_match<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of if_source_metageneration_not_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_source_metageneration_not_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_source_metageneration_not_match(None::<i32>);Sourcepub fn set_if_generation_match<T>(self, v: T) -> Self
pub fn set_if_generation_match<T>(self, v: T) -> Self
Sets the value of if_generation_match.
§Example
let x = MoveObjectRequest::new().set_if_generation_match(42);Sourcepub fn set_or_clear_if_generation_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_generation_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_generation_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_generation_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_generation_match(None::<i32>);Sourcepub fn set_if_generation_not_match<T>(self, v: T) -> Self
pub fn set_if_generation_not_match<T>(self, v: T) -> Self
Sets the value of if_generation_not_match.
§Example
let x = MoveObjectRequest::new().set_if_generation_not_match(42);Sourcepub fn set_or_clear_if_generation_not_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_generation_not_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_generation_not_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_generation_not_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_generation_not_match(None::<i32>);Sourcepub fn set_if_metageneration_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_match.
§Example
let x = MoveObjectRequest::new().set_if_metageneration_match(42);Sourcepub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_metageneration_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_metageneration_match(None::<i32>);Sourcepub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_not_match.
§Example
let x = MoveObjectRequest::new().set_if_metageneration_not_match(42);Sourcepub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_not_match.
§Example
let x = MoveObjectRequest::new().set_or_clear_if_metageneration_not_match(Some(42));
let x = MoveObjectRequest::new().set_or_clear_if_metageneration_not_match(None::<i32>);Trait Implementations§
Source§impl Clone for MoveObjectRequest
impl Clone for MoveObjectRequest
Source§fn clone(&self) -> MoveObjectRequest
fn clone(&self) -> MoveObjectRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MoveObjectRequest
impl Debug for MoveObjectRequest
Source§impl Default for MoveObjectRequest
impl Default for MoveObjectRequest
Source§fn default() -> MoveObjectRequest
fn default() -> MoveObjectRequest
Source§impl Message for MoveObjectRequest
impl Message for MoveObjectRequest
Source§impl PartialEq for MoveObjectRequest
impl PartialEq for MoveObjectRequest
impl StructuralPartialEq for MoveObjectRequest
Auto Trait Implementations§
impl Freeze for MoveObjectRequest
impl RefUnwindSafe for MoveObjectRequest
impl Send for MoveObjectRequest
impl Sync for MoveObjectRequest
impl Unpin for MoveObjectRequest
impl UnwindSafe for MoveObjectRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request