Struct gcs_example::storage_v1_types::ObjectsCopyParams [−][src]
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]
fn clone(&self) -> ObjectsCopyParams
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ObjectsCopyParams
[src]
impl Default for ObjectsCopyParams
[src]
fn default() -> ObjectsCopyParams
[src]
impl<'de> Deserialize<'de> for ObjectsCopyParams
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,