pub struct ProductionCorsConfig {
pub allowed_origins: Vec<String>,
pub allowed_methods: Vec<String>,
pub allowed_headers: Vec<String>,
pub allow_credentials: bool,
}Expand description
Production-like CORS configuration
Fields§
§allowed_origins: Vec<String>Allowed origins (use “*” for all origins)
allowed_methods: Vec<String>Allowed HTTP methods
allowed_headers: Vec<String>Allowed headers (use “*” for all headers)
allow_credentials: boolAllow credentials (cookies, authorization headers)
Trait Implementations§
Source§impl Clone for ProductionCorsConfig
impl Clone for ProductionCorsConfig
Source§fn clone(&self) -> ProductionCorsConfig
fn clone(&self) -> ProductionCorsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProductionCorsConfig
impl Debug for ProductionCorsConfig
Source§impl<'de> Deserialize<'de> for ProductionCorsConfig
impl<'de> Deserialize<'de> for ProductionCorsConfig
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
Auto Trait Implementations§
impl Freeze for ProductionCorsConfig
impl RefUnwindSafe for ProductionCorsConfig
impl Send for ProductionCorsConfig
impl Sync for ProductionCorsConfig
impl Unpin for ProductionCorsConfig
impl UnsafeUnpin for ProductionCorsConfig
impl UnwindSafe for ProductionCorsConfig
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