pub struct JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,{ /* private fields */ }
Expand description
JSON Web Key Set.
Implementations§
Source§impl<JS, JT, JU, K> JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<JS, JT, JU, K> JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
Sourcepub fn fetch<HC, RE>(
url: &JsonWebKeySetUrl,
http_client: HC,
) -> Result<Self, DiscoveryError<RE>>
pub fn fetch<HC, RE>( url: &JsonWebKeySetUrl, http_client: HC, ) -> Result<Self, DiscoveryError<RE>>
Fetch a remote JSON Web Key Set from the specified url
using the given http_client
(e.g., crate::reqwest::http_client
or crate::curl::http_client
).
Sourcepub async fn fetch_async<F, HC, RE>(
url: &JsonWebKeySetUrl,
http_client: HC,
) -> Result<Self, DiscoveryError<RE>>where
F: Future<Output = Result<HttpResponse, RE>>,
HC: FnOnce(HttpRequest) -> F,
RE: Error + 'static,
pub async fn fetch_async<F, HC, RE>(
url: &JsonWebKeySetUrl,
http_client: HC,
) -> Result<Self, DiscoveryError<RE>>where
F: Future<Output = Result<HttpResponse, RE>>,
HC: FnOnce(HttpRequest) -> F,
RE: Error + 'static,
Fetch a remote JSON Web Key Set from the specified url
using the given async http_client
(e.g., crate::reqwest::async_http_client
).
Trait Implementations§
Source§impl<JS, JT, JU, K> Clone for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<JS, JT, JU, K> Clone for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
Source§impl<JS, JT, JU, K> Debug for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT> + Debug,
JT: JsonWebKeyType + Debug,
JU: JsonWebKeyUse + Debug,
K: JsonWebKey<JS, JT, JU> + Debug,
impl<JS, JT, JU, K> Debug for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT> + Debug,
JT: JsonWebKeyType + Debug,
JU: JsonWebKeyUse + Debug,
K: JsonWebKey<JS, JT, JU> + Debug,
Source§impl<JS, JT, JU, K> Default for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<JS, JT, JU, K> Default for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
Source§impl<'de, JS, JT, JU, K> Deserialize<'de> for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<'de, JS, JT, JU, K> Deserialize<'de> for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
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<JS, JT, JU, K> PartialEq for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT> + PartialEq,
JT: JsonWebKeyType + PartialEq,
JU: JsonWebKeyUse + PartialEq,
K: JsonWebKey<JS, JT, JU> + PartialEq,
impl<JS, JT, JU, K> PartialEq for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT> + PartialEq,
JT: JsonWebKeyType + PartialEq,
JU: JsonWebKeyUse + PartialEq,
K: JsonWebKey<JS, JT, JU> + PartialEq,
Source§fn eq(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
fn eq(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<JS, JT, JU, K> Serialize for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<JS, JT, JU, K> Serialize for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<JS, JT, JU, K> StructuralPartialEq for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
Auto Trait Implementations§
impl<JS, JT, JU, K> Freeze for JsonWebKeySet<JS, JT, JU, K>
impl<JS, JT, JU, K> RefUnwindSafe for JsonWebKeySet<JS, JT, JU, K>
impl<JS, JT, JU, K> Send for JsonWebKeySet<JS, JT, JU, K>
impl<JS, JT, JU, K> Sync for JsonWebKeySet<JS, JT, JU, K>
impl<JS, JT, JU, K> Unpin for JsonWebKeySet<JS, JT, JU, K>
impl<JS, JT, JU, K> UnwindSafe for JsonWebKeySet<JS, JT, JU, K>
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more