Struct google_cloud_storage::http::objects::patch::PatchObjectRequest
source · [−]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
sourceimpl Clone for PatchObjectRequest
impl Clone for PatchObjectRequest
sourcefn clone(&self) -> PatchObjectRequest
fn clone(&self) -> PatchObjectRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PatchObjectRequest
impl Debug for PatchObjectRequest
sourceimpl Default for PatchObjectRequest
impl Default for PatchObjectRequest
sourcefn default() -> PatchObjectRequest
fn default() -> PatchObjectRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PatchObjectRequest
impl<'de> Deserialize<'de> for PatchObjectRequest
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PatchObjectRequest> for PatchObjectRequest
impl PartialEq<PatchObjectRequest> for PatchObjectRequest
sourcefn eq(&self, other: &PatchObjectRequest) -> bool
fn eq(&self, other: &PatchObjectRequest) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PatchObjectRequest) -> bool
fn ne(&self, other: &PatchObjectRequest) -> bool
This method tests for !=.
sourceimpl Serialize for PatchObjectRequest
impl Serialize for PatchObjectRequest
impl StructuralPartialEq for PatchObjectRequest
Auto Trait Implementations
impl RefUnwindSafe for PatchObjectRequest
impl Send for PatchObjectRequest
impl Sync for PatchObjectRequest
impl Unpin for PatchObjectRequest
impl UnwindSafe for PatchObjectRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more