pub struct SecuritySettings {
pub enable_auth: bool,
pub token_secret: Option<String>,
pub rate_limit: RateLimitSettings,
pub allowed_origins: Vec<String>,
}
Fields§
§enable_auth: bool
§token_secret: Option<String>
§rate_limit: RateLimitSettings
§allowed_origins: Vec<String>
Trait Implementations§
Source§impl Clone for SecuritySettings
impl Clone for SecuritySettings
Source§fn clone(&self) -> SecuritySettings
fn clone(&self) -> SecuritySettings
Returns a copy 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 SecuritySettings
impl Debug for SecuritySettings
Source§impl Default for SecuritySettings
impl Default for SecuritySettings
Source§impl<'de> Deserialize<'de> for SecuritySettings
impl<'de> Deserialize<'de> for SecuritySettings
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 SecuritySettings
impl RefUnwindSafe for SecuritySettings
impl Send for SecuritySettings
impl Sync for SecuritySettings
impl Unpin for SecuritySettings
impl UnwindSafe for SecuritySettings
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