Struct rusoto_s3::CORSRule
[−]
[src]
pub struct CORSRule { pub allowed_headers: Option<AllowedHeaders>, pub allowed_methods: AllowedMethods, pub allowed_origins: AllowedOrigins, pub expose_headers: Option<ExposeHeaders>, pub max_age_seconds: Option<MaxAgeSeconds>, }
Fields
allowed_headers: Option<AllowedHeaders>
Specifies which headers are allowed in a pre-flight OPTIONS request.
allowed_methods: AllowedMethods
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
allowed_origins: AllowedOrigins
One or more origins you want customers to be able to access the bucket from.
expose_headers: Option<ExposeHeaders>
One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).
max_age_seconds: Option<MaxAgeSeconds>
The time in seconds that your browser is to cache the preflight response for the specified resource.
Trait Implementations
impl Default for CORSRule
[src]
impl Clone for CORSRule
[src]
fn clone(&self) -> CORSRule
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