pub struct AccessControlConfig {
pub allow_localhost_only: bool,
pub allowed_ips: Vec<String>,
pub blocked_ips: Vec<String>,
pub require_api_key: bool,
pub session_timeout: u32,
}
Expand description
访问控制配置
Fields§
§allow_localhost_only: bool
§allowed_ips: Vec<String>
§blocked_ips: Vec<String>
§require_api_key: bool
§session_timeout: u32
Trait Implementations§
Source§impl Clone for AccessControlConfig
impl Clone for AccessControlConfig
Source§fn clone(&self) -> AccessControlConfig
fn clone(&self) -> AccessControlConfig
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 AccessControlConfig
impl Debug for AccessControlConfig
Source§impl<'de> Deserialize<'de> for AccessControlConfig
impl<'de> Deserialize<'de> for AccessControlConfig
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 AccessControlConfig
impl RefUnwindSafe for AccessControlConfig
impl Send for AccessControlConfig
impl Sync for AccessControlConfig
impl Unpin for AccessControlConfig
impl UnwindSafe for AccessControlConfig
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