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
origin: Option<Vec<String>>
The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
response_header: Option<Vec<String>>
The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
method: Option<Vec<String>>
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".
max_age_seconds: Option<i32>
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
Trait Implementations
impl Debug for BucketCors
[src]
impl Clone for BucketCors
[src]
fn clone(&self) -> BucketCors
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for BucketCors
[src]
fn default() -> BucketCors
Returns the "default value" for a type. Read more