pub struct CorsRule {
pub id: Option<String>,
pub allowed_origins: Vec<String>,
pub allowed_methods: Vec<String>,
pub allowed_headers: Option<Vec<String>>,
pub expose_headers: Option<Vec<String>>,
pub max_age_seconds: Option<i32>,
}Expand description
A single bucket CORS rule
Fields§
§id: Option<String>Optional rule identifier
allowed_origins: Vec<String>Allowed request origins
allowed_methods: Vec<String>Allowed HTTP methods
allowed_headers: Option<Vec<String>>Allowed request headers
expose_headers: Option<Vec<String>>Exposed response headers
max_age_seconds: Option<i32>Browser preflight cache duration in seconds
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CorsRule
impl<'de> Deserialize<'de> for CorsRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CorsRule
impl StructuralPartialEq for CorsRule
Auto Trait Implementations§
impl Freeze for CorsRule
impl RefUnwindSafe for CorsRule
impl Send for CorsRule
impl Sync for CorsRule
impl Unpin for CorsRule
impl UnsafeUnpin for CorsRule
impl UnwindSafe for CorsRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more