Struct openidconnect::JsonWebKeySet
source · [−]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
sourceimpl<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>> where
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Error + 'static,
pub fn fetch<HC, RE>(
url: &JsonWebKeySetUrl,
http_client: HC
) -> Result<Self, DiscoveryError<RE>> where
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Error + 'static,
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
sourceimpl<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>,
sourceimpl<JS: Debug, JT: Debug, JU: Debug, K: Debug> Debug for JsonWebKeySet<JS, JT, JU, K> where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<JS: Debug, JT: Debug, JU: Debug, K: Debug> Debug for JsonWebKeySet<JS, JT, JU, K> where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
sourceimpl<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>,
sourceimpl<'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>,
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>,
K: JsonWebKey<JS, JT, JU>,
sourcefn 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
sourceimpl<JS: PartialEq, JT: PartialEq, JU: PartialEq, K: PartialEq> PartialEq<JsonWebKeySet<JS, JT, JU, K>> for JsonWebKeySet<JS, JT, JU, K> where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<JS: PartialEq, JT: PartialEq, JU: PartialEq, K: PartialEq> PartialEq<JsonWebKeySet<JS, JT, JU, K>> for JsonWebKeySet<JS, JT, JU, K> where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
sourcefn eq(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
fn eq(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
fn ne(&self, other: &JsonWebKeySet<JS, JT, JU, K>) -> bool
This method tests for !=
.
sourceimpl<JS, JT, JU, K> Serialize for JsonWebKeySet<JS, JT, JU, K> where
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
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>,
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> RefUnwindSafe for JsonWebKeySet<JS, JT, JU, K> where
JS: RefUnwindSafe,
JT: RefUnwindSafe,
JU: RefUnwindSafe,
K: RefUnwindSafe,
impl<JS, JT, JU, K> Send for JsonWebKeySet<JS, JT, JU, K> where
JS: Send,
JT: Send,
JU: Send,
K: Send,
impl<JS, JT, JU, K> Sync for JsonWebKeySet<JS, JT, JU, K> where
JS: Sync,
JT: Sync,
JU: Sync,
K: Sync,
impl<JS, JT, JU, K> Unpin for JsonWebKeySet<JS, JT, JU, K> where
JS: Unpin,
JT: Unpin,
JU: Unpin,
K: Unpin,
impl<JS, JT, JU, K> UnwindSafe for JsonWebKeySet<JS, JT, JU, K> where
JS: UnwindSafe,
JT: UnwindSafe,
JU: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more