Struct gcs_example::storage_v1_types::ObjectsCopyParams[][src]

pub struct ObjectsCopyParams {
    pub storage_params: Option<StorageParams>,
    pub destination_bucket: String,
    pub destination_kms_key_name: Option<String>,
    pub destination_object: String,
    pub destination_predefined_acl: Option<ObjectsCopyDestinationPredefinedAcl>,
    pub if_generation_match: Option<String>,
    pub if_generation_not_match: Option<String>,
    pub if_metageneration_match: Option<String>,
    pub if_metageneration_not_match: Option<String>,
    pub if_source_generation_match: Option<String>,
    pub if_source_generation_not_match: Option<String>,
    pub if_source_metageneration_match: Option<String>,
    pub if_source_metageneration_not_match: Option<String>,
    pub projection: Option<ObjectsCopyProjection>,
    pub provisional_user_project: Option<String>,
    pub source_bucket: String,
    pub source_generation: Option<String>,
    pub source_object: String,
    pub user_project: Option<String>,
}

Parameters for the objects.copy method.

Fields

storage_params: Option<StorageParams>

General attributes applying to any API call

destination_bucket: String

Name of the bucket in which to store the new object. Overrides the provided object metadata’s bucket value, if any.For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

destination_kms_key_name: Option<String>

Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/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.

destination_object: String

Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata’s name value, if any.

destination_predefined_acl: Option<ObjectsCopyDestinationPredefinedAcl>

Apply a predefined set of access controls to the destination object.

if_generation_match: Option<String>

i64: 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_not_match: Option<String>

i64: 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_metageneration_match: Option<String>

i64: Makes the operation conditional on whether the destination object’s current metageneration matches the given value.

if_metageneration_not_match: Option<String>

i64: Makes the operation conditional on whether the destination object’s current metageneration does not match the given value.

if_source_generation_match: Option<String>

i64: Makes the operation conditional on whether the source object’s current generation matches the given value.

if_source_generation_not_match: Option<String>

i64: Makes the operation conditional on whether the source object’s current generation does not match the given value.

if_source_metageneration_match: Option<String>

i64: Makes the operation conditional on whether the source object’s current metageneration matches the given value.

if_source_metageneration_not_match: Option<String>

i64: Makes the operation conditional on whether the source object’s current metageneration does not match the given value.

projection: Option<ObjectsCopyProjection>

Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.

provisional_user_project: Option<String>

The project to be billed for this request if the target bucket is requester-pays bucket.

source_bucket: String

Name of the bucket in which to find the source object.

source_generation: Option<String>

i64: If present, selects a specific revision of the source object (as opposed to the latest version, the default).

source_object: String

Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

user_project: Option<String>

The project to be billed for this request. Required for Requester Pays buckets.

Trait Implementations

impl Clone for ObjectsCopyParams[src]

impl Debug for ObjectsCopyParams[src]

impl Default for ObjectsCopyParams[src]

impl<'de> Deserialize<'de> for ObjectsCopyParams[src]

impl Display for ObjectsCopyParams[src]

impl Serialize for ObjectsCopyParams[src]

Auto Trait Implementations

impl RefUnwindSafe for ObjectsCopyParams

impl Send for ObjectsCopyParams

impl Sync for ObjectsCopyParams

impl Unpin for ObjectsCopyParams

impl UnwindSafe for ObjectsCopyParams

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.