pub struct EndpointSecurityOptions {
pub tokens: Option<bool>,
pub jwts: Option<bool>,
pub domain_masks: Option<bool>,
pub ips: Option<bool>,
pub referrers: Option<bool>,
pub request_filters: Option<bool>,
pub ip_custom_header: Option<EndpointIpCustomHeaderOption>,
}Expand description
Boolean toggles controlling which security features are enabled.
Fields§
§tokens: Option<bool>Whether token authentication is enforced.
jwts: Option<bool>Whether JWT validation is enforced.
domain_masks: Option<bool>Whether domain masking is enabled.
ips: Option<bool>Whether IP whitelisting is enforced.
referrers: Option<bool>Whether referrer validation is enforced.
request_filters: Option<bool>Whether request (method) filtering is enforced.
ip_custom_header: Option<EndpointIpCustomHeaderOption>Custom header used to identify the client IP.
Trait Implementations§
Source§impl Clone for EndpointSecurityOptions
impl Clone for EndpointSecurityOptions
Source§fn clone(&self) -> EndpointSecurityOptions
fn clone(&self) -> EndpointSecurityOptions
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 EndpointSecurityOptions
impl Debug for EndpointSecurityOptions
Source§impl<'de> Deserialize<'de> for EndpointSecurityOptions
impl<'de> Deserialize<'de> for EndpointSecurityOptions
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 EndpointSecurityOptions
impl RefUnwindSafe for EndpointSecurityOptions
impl Send for EndpointSecurityOptions
impl Sync for EndpointSecurityOptions
impl Unpin for EndpointSecurityOptions
impl UnsafeUnpin for EndpointSecurityOptions
impl UnwindSafe for EndpointSecurityOptions
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