pub struct RewriteObject(/* private fields */);Expand description
The request builder for StorageControl::rewrite_object calls.
§Example
use builder::storage_control::RewriteObject;
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> RewriteObject {
// ... details omitted ...
}Implementations§
Source§impl RewriteObject
impl RewriteObject
Sourcepub fn with_request<V: Into<RewriteObjectRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<RewriteObjectRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<RewriteResponse>
pub async fn send(self) -> Result<RewriteResponse>
Sends the request.
Sourcepub fn set_destination_name<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_name<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_name.
This is a required field for requests.
Sourcepub fn set_destination_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_bucket.
This is a required field for requests.
Sourcepub fn set_destination_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_kms_key<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_kms_key.
Sourcepub fn set_destination<T>(self, v: T) -> Self
pub fn set_destination<T>(self, v: T) -> Self
Sets the value of destination.
Sourcepub fn set_or_clear_destination<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_destination<T>(self, v: Option<T>) -> Self
Sets or clears the value of destination.
Sourcepub fn set_source_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_source_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of source_bucket.
This is a required field for requests.
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.
This is a required field for requests.
Sourcepub fn set_source_generation<T: Into<i64>>(self, v: T) -> Self
pub fn set_source_generation<T: Into<i64>>(self, v: T) -> Self
Sets the value of source_generation.
Sourcepub fn set_rewrite_token<T: Into<String>>(self, v: T) -> Self
pub fn set_rewrite_token<T: Into<String>>(self, v: T) -> Self
Sets the value of rewrite_token.
Sourcepub fn set_destination_predefined_acl<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_predefined_acl<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_predefined_acl.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Sourcepub fn set_max_bytes_rewritten_per_call<T: Into<i64>>(self, v: T) -> Self
pub fn set_max_bytes_rewritten_per_call<T: Into<i64>>(self, v: T) -> Self
Sets the value of max_bytes_rewritten_per_call.
Sourcepub fn set_copy_source_encryption_algorithm<T: Into<String>>(self, v: T) -> Self
pub fn set_copy_source_encryption_algorithm<T: Into<String>>(self, v: T) -> Self
Sets the value of copy_source_encryption_algorithm.
Sourcepub fn set_copy_source_encryption_key_bytes<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_copy_source_encryption_key_bytes<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of copy_source_encryption_key_bytes.
Sourcepub fn set_copy_source_encryption_key_sha256_bytes<T: Into<Bytes>>(
self,
v: T,
) -> Self
pub fn set_copy_source_encryption_key_sha256_bytes<T: Into<Bytes>>( self, v: T, ) -> Self
Sets the value of copy_source_encryption_key_sha256_bytes.
Sourcepub fn set_common_object_request_params<T>(self, v: T) -> Selfwhere
T: Into<CommonObjectRequestParams>,
pub fn set_common_object_request_params<T>(self, v: T) -> Selfwhere
T: Into<CommonObjectRequestParams>,
Sets the value of common_object_request_params.
Sourcepub fn set_or_clear_common_object_request_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonObjectRequestParams>,
pub fn set_or_clear_common_object_request_params<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonObjectRequestParams>,
Sets or clears the value of common_object_request_params.
Sourcepub fn set_object_checksums<T>(self, v: T) -> Selfwhere
T: Into<ObjectChecksums>,
pub fn set_object_checksums<T>(self, v: T) -> Selfwhere
T: Into<ObjectChecksums>,
Sets the value of object_checksums.
Sourcepub fn set_or_clear_object_checksums<T>(self, v: Option<T>) -> Selfwhere
T: Into<ObjectChecksums>,
pub fn set_or_clear_object_checksums<T>(self, v: Option<T>) -> Selfwhere
T: Into<ObjectChecksums>,
Sets or clears the value of object_checksums.
Trait Implementations§
Source§impl Clone for RewriteObject
impl Clone for RewriteObject
Source§fn clone(&self) -> RewriteObject
fn clone(&self) -> RewriteObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RewriteObject
impl Debug for RewriteObject
Source§impl RewriteObjectExt for RewriteObject
impl RewriteObjectExt for RewriteObject
Auto Trait Implementations§
impl !Freeze for RewriteObject
impl !RefUnwindSafe for RewriteObject
impl Send for RewriteObject
impl Sync for RewriteObject
impl Unpin for RewriteObject
impl !UnwindSafe for RewriteObject
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::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.