pub struct AuthPolicy {
pub api_keys: Vec<String>,
pub jwt_issuer: Option<String>,
pub jwt_audience: Option<String>,
pub jwt_secret_env: Option<String>,
pub mtls_subject_allowlist: Vec<String>,
}Available on crate feature
enterprise only.Expand description
Fields§
§api_keys: Vec<String>Accepted API keys.
jwt_issuer: Option<String>Optional JWT issuer.
jwt_audience: Option<String>Optional JWT audience.
jwt_secret_env: Option<String>Environment variable containing HS256 secret.
mtls_subject_allowlist: Vec<String>Allowed mTLS subject DNs.
Trait Implementations§
Source§impl Clone for AuthPolicy
impl Clone for AuthPolicy
Source§fn clone(&self) -> AuthPolicy
fn clone(&self) -> AuthPolicy
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 AuthPolicy
impl Debug for AuthPolicy
Source§impl Default for AuthPolicy
impl Default for AuthPolicy
Source§fn default() -> AuthPolicy
fn default() -> AuthPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthPolicy
impl<'de> Deserialize<'de> for AuthPolicy
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
Source§impl PartialEq for AuthPolicy
impl PartialEq for AuthPolicy
Source§impl Serialize for AuthPolicy
impl Serialize for AuthPolicy
impl Eq for AuthPolicy
impl StructuralPartialEq for AuthPolicy
Auto Trait Implementations§
impl Freeze for AuthPolicy
impl RefUnwindSafe for AuthPolicy
impl Send for AuthPolicy
impl Sync for AuthPolicy
impl Unpin for AuthPolicy
impl UnsafeUnpin for AuthPolicy
impl UnwindSafe for AuthPolicy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.