pub struct CorsConfig {
pub allowed_origins: Vec<String>,
pub allow_all: bool,
pub allow_methods: String,
pub allow_headers: String,
pub allow_credentials: bool,
pub max_age: Option<u32>,
}Fields§
§allowed_origins: Vec<String>§allow_all: bool§allow_methods: String§allow_headers: String§allow_credentials: bool§max_age: Option<u32>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CorsConfig
impl RefUnwindSafe for CorsConfig
impl Send for CorsConfig
impl Sync for CorsConfig
impl Unpin for CorsConfig
impl UnwindSafe for CorsConfig
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