Struct rusoto_s3::CORSRule
[−]
[src]
pub struct CORSRule { pub allowed_headers: Option<Vec<String>>, pub allowed_methods: Vec<String>, pub allowed_origins: Vec<String>, pub expose_headers: Option<Vec<String>>, pub max_age_seconds: Option<i64>, }
Fields
allowed_headers: Option<Vec<String>>
Specifies which headers are allowed in a pre-flight OPTIONS request.
allowed_methods: Vec<String>
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
allowed_origins: Vec<String>
One or more origins you want customers to be able to access the bucket from.
expose_headers: Option<Vec<String>>
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<i64>
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 Debug for CORSRule
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more