Struct gcs_example::storage_v1_types::ObjectsUpdateParams[][src]

pub struct ObjectsUpdateParams {
    pub storage_params: Option<StorageParams>,
    pub bucket: String,
    pub generation: Option<String>,
    pub if_generation_match: Option<String>,
    pub if_generation_not_match: Option<String>,
    pub if_metageneration_match: Option<String>,
    pub if_metageneration_not_match: Option<String>,
    pub object: String,
    pub predefined_acl: Option<ObjectsUpdatePredefinedAcl>,
    pub projection: Option<ObjectsUpdateProjection>,
    pub provisional_user_project: Option<String>,
    pub user_project: Option<String>,
}

Parameters for the objects.update method.

Fields

storage_params: Option<StorageParams>

General attributes applying to any API call

bucket: String

Name of the bucket in which the object resides.

generation: Option<String>

i64: If present, selects a specific revision of this object (as opposed to the latest version, the default).

if_generation_match: Option<String>

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<String>

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<String>

i64: Makes the operation conditional on whether the object’s current metageneration matches the given value.

if_metageneration_not_match: Option<String>

i64: Makes the operation conditional on whether the object’s current metageneration does not match the given value.

object: String

Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

predefined_acl: Option<ObjectsUpdatePredefinedAcl>

Apply a predefined set of access controls to this object.

projection: Option<ObjectsUpdateProjection>

Set of properties to return. Defaults to full.

provisional_user_project: Option<String>

The project to be billed for this request if the target bucket is requester-pays bucket.

user_project: Option<String>

The project to be billed for this request. Required for Requester Pays buckets.

Trait Implementations

impl Clone for ObjectsUpdateParams[src]

impl Debug for ObjectsUpdateParams[src]

impl Default for ObjectsUpdateParams[src]

impl<'de> Deserialize<'de> for ObjectsUpdateParams[src]

impl Display for ObjectsUpdateParams[src]

impl Serialize for ObjectsUpdateParams[src]

Auto Trait Implementations

impl RefUnwindSafe for ObjectsUpdateParams

impl Send for ObjectsUpdateParams

impl Sync for ObjectsUpdateParams

impl Unpin for ObjectsUpdateParams

impl UnwindSafe for ObjectsUpdateParams

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.