pub struct PatchObjectRequest {
pub bucket: String,
pub object: String,
pub generation: Option<i64>,
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 predefined_acl: Option<PredefinedBucketAcl>,
pub projection: Option<Projection>,
pub metadata: Option<Object>,
pub encryption: Option<Encryption>,
}Expand description
Request message for PatchObject.
Fields§
§bucket: StringRequired. Name of the bucket in which the object resides.
object: StringRequired. Name of the object.
generation: Option<i64>If present, selects a specific revision of this object (as opposed to the latest version, the default).
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_generation_not_match: Option<i64>Makes the operation conditional on whether the 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<i64>Makes the operation conditional on whether the object’s current metageneration matches the given value.
if_metageneration_not_match: Option<i64>Makes the operation conditional on whether the object’s current metageneration does not match the given value.
predefined_acl: Option<PredefinedBucketAcl>Apply a predefined set of access controls to this object.
projection: Option<Projection>Set of properties to return. Defaults to FULL.
metadata: Option<Object>The Object metadata for updating.
encryption: Option<Encryption>A set of parameters common to Storage API requests concerning an object.
Trait Implementations§
Source§impl Clone for PatchObjectRequest
impl Clone for PatchObjectRequest
Source§fn clone(&self) -> PatchObjectRequest
fn clone(&self) -> PatchObjectRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more