Struct aws_sdk_apigatewayv2::model::Cors [−][src]
#[non_exhaustive]pub struct Cors {
pub allow_credentials: bool,
pub allow_headers: Option<Vec<String>>,
pub allow_methods: Option<Vec<String>>,
pub allow_origins: Option<Vec<String>>,
pub expose_headers: Option<Vec<String>>,
pub max_age: i32,
}
Expand description
Represents a CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.allow_credentials: bool
Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
allow_headers: Option<Vec<String>>
Represents a collection of allowed headers. Supported only for HTTP APIs.
allow_methods: Option<Vec<String>>
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
allow_origins: Option<Vec<String>>
Represents a collection of allowed origins. Supported only for HTTP APIs.
expose_headers: Option<Vec<String>>
Represents a collection of exposed headers. Supported only for HTTP APIs.
max_age: i32
The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
Implementations
Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
Represents a collection of allowed headers. Supported only for HTTP APIs.
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
Represents a collection of allowed origins. Supported only for HTTP APIs.
Represents a collection of exposed headers. Supported only for HTTP APIs.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cors
impl UnwindSafe for Cors
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more