[][src]Struct rusoto_apigatewayv2::Cors

pub struct Cors {
    pub allow_credentials: Option<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: Option<i64>,
}

Represents a CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.

Fields

allow_credentials: Option<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: Option<i64>

The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.

Trait Implementations

impl Clone for Cors[src]

impl Debug for Cors[src]

impl Default for Cors[src]

impl<'de> Deserialize<'de> for Cors[src]

impl PartialEq<Cors> for Cors[src]

impl Serialize for Cors[src]

impl StructuralPartialEq for Cors[src]

Auto Trait Implementations

impl RefUnwindSafe for Cors

impl Send for Cors

impl Sync for Cors

impl Unpin for Cors

impl UnwindSafe for Cors

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.