pub struct CorsConfigDto {
pub enabled: bool,
pub allow_origins: Vec<ConfigValue<String>>,
pub allow_methods: Vec<ConfigValue<String>>,
pub allow_headers: Vec<ConfigValue<String>>,
pub expose_headers: Vec<ConfigValue<String>>,
pub allow_credentials: bool,
pub max_age: u64,
}Fields§
§enabled: bool§allow_origins: Vec<ConfigValue<String>>§allow_methods: Vec<ConfigValue<String>>§allow_headers: Vec<ConfigValue<String>>§expose_headers: Vec<ConfigValue<String>>§allow_credentials: bool§max_age: u64Trait Implementations§
Source§impl Clone for CorsConfigDto
impl Clone for CorsConfigDto
Source§fn clone(&self) -> CorsConfigDto
fn clone(&self) -> CorsConfigDto
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CorsConfigDto
impl Debug for CorsConfigDto
Source§impl<'de> Deserialize<'de> for CorsConfigDto
impl<'de> Deserialize<'de> for CorsConfigDto
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
Source§impl From<&CorsConfig> for CorsConfigDto
impl From<&CorsConfig> for CorsConfigDto
Source§fn from(c: &CorsConfig) -> Self
fn from(c: &CorsConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CorsConfigDto
impl PartialEq for CorsConfigDto
Source§fn eq(&self, other: &CorsConfigDto) -> bool
fn eq(&self, other: &CorsConfigDto) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CorsConfigDto
impl Serialize for CorsConfigDto
Source§impl<'__s> ToSchema<'__s> for CorsConfigDto
impl<'__s> ToSchema<'__s> for CorsConfigDto
impl StructuralPartialEq for CorsConfigDto
Auto Trait Implementations§
impl Freeze for CorsConfigDto
impl RefUnwindSafe for CorsConfigDto
impl Send for CorsConfigDto
impl Sync for CorsConfigDto
impl Unpin for CorsConfigDto
impl UnsafeUnpin for CorsConfigDto
impl UnwindSafe for CorsConfigDto
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