pub struct CorsSettings {Show 13 fields
pub allowed_origin_urls: Option<CommaSeparatedVec>,
pub allowed_methods: Option<CommaSeparatedVec>,
pub allowed_headers: Option<CommaSeparatedVec>,
pub allow_any_method: bool,
pub allow_any_header: bool,
pub allow_any_origin: bool,
pub expose_headers: Option<CommaSeparatedVec>,
pub max_age: Option<Duration>,
pub disable_preflight: bool,
pub send_wildcard: bool,
pub disable_vary_header: bool,
pub expose_any_header: bool,
pub supports_credentials: bool,
}Fields§
§allowed_origin_urls: Option<CommaSeparatedVec>§allowed_methods: Option<CommaSeparatedVec>§allowed_headers: Option<CommaSeparatedVec>§allow_any_method: bool§allow_any_header: bool§allow_any_origin: bool§expose_headers: Option<CommaSeparatedVec>§max_age: Option<Duration>§disable_preflight: bool§send_wildcard: bool§disable_vary_header: bool§expose_any_header: bool§supports_credentials: boolImplementations§
Source§impl CorsSettings
impl CorsSettings
Trait Implementations§
Source§impl Clone for CorsSettings
impl Clone for CorsSettings
Source§fn clone(&self) -> CorsSettings
fn clone(&self) -> CorsSettings
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 CorsSettings
impl Debug for CorsSettings
Source§impl Default for CorsSettings
impl Default for CorsSettings
Source§fn default() -> CorsSettings
fn default() -> CorsSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CorsSettings
impl<'de> Deserialize<'de> for CorsSettings
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 CorsSettings
impl RefUnwindSafe for CorsSettings
impl Send for CorsSettings
impl Sync for CorsSettings
impl Unpin for CorsSettings
impl UnwindSafe for CorsSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> ConfigFromEnv<'de> for Twhere
T: Deserialize<'de>,
impl<'de, T> ConfigFromEnv<'de> for Twhere
T: Deserialize<'de>,
fn from(env: Environment) -> Result<T, ConfigError>
Source§fn from_env() -> Result<Self, ConfigError>
fn from_env() -> Result<Self, ConfigError>
Get a configuration from the env-vars.
Source§fn from_env_prefix<S: AsRef<str>>(prefix: S) -> Result<Self, ConfigError>
fn from_env_prefix<S: AsRef<str>>(prefix: S) -> Result<Self, ConfigError>
Get a configuration from the env-vars, prefixing all with the provided prefix plus
the separator.