#[non_exhaustive]pub struct ComposeObjectRequest {
pub destination: Option<Object>,
pub source_objects: Vec<SourceObject>,
pub destination_predefined_acl: String,
pub if_generation_match: Option<i64>,
pub if_metageneration_match: Option<i64>,
pub kms_key: String,
pub common_object_request_params: Option<CommonObjectRequestParams>,
pub object_checksums: Option<ObjectChecksums>,
/* private fields */
}Expand description
Request message for ComposeObject.
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.destination: Option<Object>Required. Properties of the resulting object.
source_objects: Vec<SourceObject>Optional. The list of source objects that will be concatenated into a single object.
destination_predefined_acl: StringOptional. Apply a predefined set of access controls to the destination object. Valid values are “authenticatedRead”, “bucketOwnerFullControl”, “bucketOwnerRead”, “private”, “projectPrivate”, or “publicRead”.
if_generation_match: Option<i64>Makes the operation conditional on whether the 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_metageneration_match: Option<i64>Makes the operation conditional on whether the object’s current metageneration matches the given value.
kms_key: StringOptional. Resource name of the Cloud KMS key, of the form
projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key,
that will be used to encrypt the object. Overrides the object
metadata’s kms_key_name value, if any.
common_object_request_params: Option<CommonObjectRequestParams>Optional. A set of parameters common to Storage API requests concerning an object.
object_checksums: Option<ObjectChecksums>Optional. The checksums of the complete object. This will be validated against the combined checksums of the component objects.
Implementations§
Source§impl ComposeObjectRequest
impl ComposeObjectRequest
pub fn new() -> Self
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_objects<T, V>(self, v: T) -> Self
pub fn set_source_objects<T, V>(self, v: T) -> Self
Sets the value of source_objects.
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_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_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key.
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 ComposeObjectRequest
impl Clone for ComposeObjectRequest
Source§fn clone(&self) -> ComposeObjectRequest
fn clone(&self) -> ComposeObjectRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComposeObjectRequest
impl Debug for ComposeObjectRequest
Source§impl Default for ComposeObjectRequest
impl Default for ComposeObjectRequest
Source§fn default() -> ComposeObjectRequest
fn default() -> ComposeObjectRequest
Source§impl Message for ComposeObjectRequest
impl Message for ComposeObjectRequest
Source§impl PartialEq for ComposeObjectRequest
impl PartialEq for ComposeObjectRequest
impl StructuralPartialEq for ComposeObjectRequest
Auto Trait Implementations§
impl !Freeze for ComposeObjectRequest
impl RefUnwindSafe for ComposeObjectRequest
impl Send for ComposeObjectRequest
impl Sync for ComposeObjectRequest
impl Unpin for ComposeObjectRequest
impl UnwindSafe for ComposeObjectRequest
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