pub struct MoveObjectRequest {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 moving an object.
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 MoveObjectRequest
impl Clone for MoveObjectRequest
Source§fn clone(&self) -> MoveObjectRequest
fn clone(&self) -> MoveObjectRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more