pub struct SecurityConfig {
pub token_lifetime_secs: u64,
pub max_token_uses: u32,
pub max_tokens_per_service: u32,
pub rate_limit_per_minute: u32,
pub strict_validation: bool,
}Expand description
Security configuration
Fields§
§token_lifetime_secs: u64Token lifetime in seconds
max_token_uses: u32Maximum uses per token
max_tokens_per_service: u32Maximum tokens per service
rate_limit_per_minute: u32Rate limit: requests per minute per service
strict_validation: boolEnable strict validation
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
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 SecurityConfig
impl Debug for SecurityConfig
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnsafeUnpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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