pub struct PreflightConfig {
pub allowed_origins: Vec<String>,
pub allowed_methods: String,
pub allowed_headers: String,
pub max_age: String,
pub allow_credentials: bool,
}Expand description
Configuration for automatic OPTIONS preflight responses.
Fields§
§allowed_origins: Vec<String>§allowed_methods: String§allowed_headers: String§max_age: String§allow_credentials: boolTrait Implementations§
Source§impl Clone for PreflightConfig
impl Clone for PreflightConfig
Source§fn clone(&self) -> PreflightConfig
fn clone(&self) -> PreflightConfig
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 moreAuto Trait Implementations§
impl Freeze for PreflightConfig
impl RefUnwindSafe for PreflightConfig
impl Send for PreflightConfig
impl Sync for PreflightConfig
impl Unpin for PreflightConfig
impl UnsafeUnpin for PreflightConfig
impl UnwindSafe for PreflightConfig
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