Struct google_cloud_storage::http::objects::copy::CopyObjectRequest
source · pub struct CopyObjectRequest {Show 16 fields
pub destination_bucket: String,
pub destination_object: String,
pub source_object: String,
pub source_bucket: String,
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>,
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 projection: Option<Projection>,
pub source_generation: Option<i64>,
pub metadata: Option<Object>,
pub encryption: Option<Encryption>,
}Expand description
Request message for GetObject.
Fields§
§destination_bucket: StringName of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata’s name value, if any.
destination_object: StringName of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata’s name value, if any.
source_object: String§source_bucket: StringName of the bucket in which to find the source object.
if_generation_match: Option<i64>Makes the operation conditional on there being a live destination object with a generation number that matches the given value. Setting ifGenerationMatch to 0 makes the operation succeed only if there is no live destination object.
if_generation_not_match: Option<i64>Makes the operation conditional on there being a live destination object with a generation number that does not match the given value. If no live destination object exists, the precondition fails. Setting ifGenerationNotMatch to 0 makes the operation succeed if there is a live version of the object.
if_metageneration_match: Option<i64>Makes the operation conditional on there being a live destination object with a metageneration number that matches the given value.
if_metageneration_not_match: Option<i64>Makes the operation conditional on there being a live destination object with a metageneration number that does not match the given value.
if_source_generation_match: Option<i64>Makes the operation conditional on whether the source object’s generation matches the given value.
if_source_generation_not_match: Option<i64>Makes the operation conditional on whether the source object’s generation does not match the given value.
if_source_metageneration_match: Option<i64>Makes the operation conditional on whether the source object’s current metageneration matches the given value.
if_source_metageneration_not_match: Option<i64>Makes the operation conditional on whether the source object’s current metageneration does not match the given value.
projection: Option<Projection>Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
Acceptable values are: full: Include all properties. noAcl: Omit the owner, acl property.
source_generation: Option<i64>If present, selects a specific revision of the source object (as opposed to the latest version, the default)
metadata: Option<Object>The Object metadata for updating.
encryption: Option<Encryption>Trait Implementations§
source§impl Clone for CopyObjectRequest
impl Clone for CopyObjectRequest
source§fn clone(&self) -> CopyObjectRequest
fn clone(&self) -> CopyObjectRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CopyObjectRequest
impl Debug for CopyObjectRequest
source§impl Default for CopyObjectRequest
impl Default for CopyObjectRequest
source§fn default() -> CopyObjectRequest
fn default() -> CopyObjectRequest
source§impl<'de> Deserialize<'de> for CopyObjectRequest
impl<'de> Deserialize<'de> for CopyObjectRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for CopyObjectRequest
impl PartialEq for CopyObjectRequest
source§fn eq(&self, other: &CopyObjectRequest) -> bool
fn eq(&self, other: &CopyObjectRequest) -> bool
self and other values to be equal, and is used
by ==.