pub struct VerifyApiKeyRequest {
pub credential: Option<String>,
pub expected_audiences: Option<Vec<String>>,
}Fields§
§credential: Option<String>credential is the API key or derived token to verify (any format: issued key, imported key, JWT, or macaroon). At most 8,192 bytes of UTF-8, counted over the complete encoded credential.
expected_audiences: Option<Vec<String>>expected_audiences lists the recipients the caller accepts. Verification succeeds only when the credential names at least one of them, matched exactly and case-sensitively; a credential that names no audience fails. Omit the field to accept only credentials that name no audience: a credential bound to one is rejected unless the caller identifies itself as a recipient (RFC 7519 section 4.1.3).
Implementations§
Source§impl VerifyApiKeyRequest
impl VerifyApiKeyRequest
pub fn new() -> VerifyApiKeyRequest
Trait Implementations§
Source§impl Clone for VerifyApiKeyRequest
impl Clone for VerifyApiKeyRequest
Source§impl Debug for VerifyApiKeyRequest
impl Debug for VerifyApiKeyRequest
Source§impl Default for VerifyApiKeyRequest
impl Default for VerifyApiKeyRequest
Source§impl<'de> Deserialize<'de> for VerifyApiKeyRequest
impl<'de> Deserialize<'de> for VerifyApiKeyRequest
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 VerifyApiKeyRequest
impl PartialEq for VerifyApiKeyRequest
Source§impl Serialize for VerifyApiKeyRequest
impl Serialize for VerifyApiKeyRequest
impl StructuralPartialEq for VerifyApiKeyRequest
Auto Trait Implementations§
impl Freeze for VerifyApiKeyRequest
impl RefUnwindSafe for VerifyApiKeyRequest
impl Send for VerifyApiKeyRequest
impl Sync for VerifyApiKeyRequest
impl Unpin for VerifyApiKeyRequest
impl UnsafeUnpin for VerifyApiKeyRequest
impl UnwindSafe for VerifyApiKeyRequest
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