Struct google_storage1::api::BucketCors
source · pub struct BucketCors {
pub max_age_seconds: Option<i32>,
pub method: Option<Vec<String>>,
pub origin: Option<Vec<String>>,
pub response_header: Option<Vec<String>>,
}
Expand description
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§
§max_age_seconds: Option<i32>
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
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”.
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.
Trait Implementations§
source§impl Clone for BucketCors
impl Clone for BucketCors
source§fn clone(&self) -> BucketCors
fn clone(&self) -> BucketCors
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BucketCors
impl Debug for BucketCors
source§impl Default for BucketCors
impl Default for BucketCors
source§fn default() -> BucketCors
fn default() -> BucketCors
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BucketCors
impl<'de> Deserialize<'de> for BucketCors
source§fn 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
source§impl Serialize for BucketCors
impl Serialize for BucketCors
impl NestedType for BucketCors
impl Part for BucketCors
Auto Trait Implementations§
impl RefUnwindSafe for BucketCors
impl Send for BucketCors
impl Sync for BucketCors
impl Unpin for BucketCors
impl UnwindSafe for BucketCors
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more