pub struct HttpCorsConfig {
pub enabled: bool,
pub allowed_origins: Vec<String>,
pub allowed_methods: Vec<String>,
pub allowed_headers: Vec<String>,
}
Expand description
HTTP CORS configuration
Fields§
§enabled: bool
Enable CORS
allowed_origins: Vec<String>
Allowed origins
allowed_methods: Vec<String>
Allowed methods
allowed_headers: Vec<String>
Allowed headers
Trait Implementations§
Source§impl Clone for HttpCorsConfig
impl Clone for HttpCorsConfig
Source§fn clone(&self) -> HttpCorsConfig
fn clone(&self) -> HttpCorsConfig
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 HttpCorsConfig
impl Debug for HttpCorsConfig
Source§impl<'de> Deserialize<'de> for HttpCorsConfig
impl<'de> Deserialize<'de> for HttpCorsConfig
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 HttpCorsConfig
impl RefUnwindSafe for HttpCorsConfig
impl Send for HttpCorsConfig
impl Sync for HttpCorsConfig
impl Unpin for HttpCorsConfig
impl UnwindSafe for HttpCorsConfig
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