Struct google_storage1::BucketCors [] [src]

pub struct BucketCors {
    pub origin: Option<Vec<String>>,
    pub response_header: Option<Vec<String>>,
    pub method: Option<Vec<String>>,
    pub max_age_seconds: Option<i32>,
}

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

This type is not used in any activity, and only used as part of another schema.

Fields

The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".

The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.

The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".

The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.

Trait Implementations

impl Debug for BucketCors
[src]

Formats the value using the given formatter.

impl Clone for BucketCors
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for BucketCors
[src]

Returns the "default value" for a type. Read more

impl NestedType for BucketCors
[src]

impl Part for BucketCors
[src]