Struct cloud_storage::NewBucket[][src]

pub struct NewBucket {
Show fields pub name: String, pub default_event_based_hold: Option<bool>, pub acl: Option<Vec<NewBucketAccessControl>>, pub default_object_acl: Option<Vec<NewDefaultObjectAccessControl>>, pub iam_configuration: Option<IamConfiguration>, pub encryption: Option<Encryption>, pub location: Location, pub website: Option<Website>, pub logging: Option<Logging>, pub versioning: Option<Versioning>, pub cors: Option<Vec<Cors>>, pub lifecycle: Option<Lifecycle>, pub labels: Option<HashMap<String, String>>, pub storage_class: Option<StorageClass>, pub billing: Option<Billing>,
}
Expand description

A model that can be used to insert new buckets into Google Cloud Storage.

Fields

name: String

The name of the bucket. See the bucket naming guidelines for more information.

default_event_based_hold: Option<bool>

Whether or not to automatically apply an eventBasedHold to new objects added to the bucket.

acl: Option<Vec<NewBucketAccessControl>>

Access controls on the bucket, containing one or more BucketAccessControls resources. If iamConfiguration.uniformBucketLevelAccess.enabled is set to true, this field is omitted in responses, and requests that specify this field fail with a 400 Bad Request response.

default_object_acl: Option<Vec<NewDefaultObjectAccessControl>>

Default access controls to apply to new objects when no ACL is provided. This list defines an entity and role for one or more DefaultObjectAccessControls resources. If iamConfiguration.uniformBucketLevelAccess.enabled is set to true, this field is omitted in responses, and requests that specify this field fail with a 400 Bad Request response.

iam_configuration: Option<IamConfiguration>

The bucket’s IAM configuration.

encryption: Option<Encryption>

Encryption configuration for a bucket.

location: Location

The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See Cloud Storage bucket locations for the authoritative list.

website: Option<Website>

The bucket’s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.

logging: Option<Logging>

The bucket’s logging configuration, which defines the destination bucket and optional name prefix for the current bucket’s logs.

versioning: Option<Versioning>

The bucket’s versioning configuration.

cors: Option<Vec<Cors>>

The bucket’s Cross-Origin Resource Sharing (CORS) configuration.

lifecycle: Option<Lifecycle>

The bucket’s lifecycle configuration. See lifecycle management for more information.

labels: Option<HashMap<String, String>>

User-provided bucket labels, in key/value pairs.

storage_class: Option<StorageClass>

The bucket’s default storage class, used whenever no storageClass is specified for a newly-created object. If storageClass is not specified when the bucket is created, it defaults to STANDARD. For more information, see storage classes.

billing: Option<Billing>

The bucket’s billing configuration.

Trait Implementations

impl Debug for NewBucket[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for NewBucket[src]

fn default() -> NewBucket[src]

Returns the “default value” for a type. Read more

impl PartialEq<NewBucket> for NewBucket[src]

fn eq(&self, other: &NewBucket) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &NewBucket) -> bool[src]

This method tests for !=.

impl Serialize for NewBucket[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl StructuralPartialEq for NewBucket[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.