Struct aws_sdk_rust::aws::s3::bucket::CORSRule
[−]
[src]
pub struct CORSRule { pub allowed_headers: AllowedHeaders, pub expose_headers: ExposeHeaders, pub allowed_methods: AllowedMethods, pub max_age_seconds: MaxAgeSeconds, pub allowed_origins: AllowedOrigins, }
Fields
allowed_headers: AllowedHeaders
Specifies which headers are allowed in a pre-flight OPTIONS request.
expose_headers: 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).
allowed_methods: AllowedMethods
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
max_age_seconds: MaxAgeSeconds
The time in seconds that your browser is to cache the preflight response for the specified resource.
allowed_origins: AllowedOrigins
One or more origins you want customers to be able to access the bucket from.
Trait Implementations
impl Debug for CORSRule
[src]
impl Default for CORSRule
[src]
impl Decodable for CORSRule
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<CORSRule, __D::Error>
Deserialize a value using a Decoder
.