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§
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
This method 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> Eq for JsonWebKeySet<JS, JT, JU, K>where
JS: JwsSigningAlgorithm<JT> + Eq,
JT: JsonWebKeyType + Eq,
JU: JsonWebKeyUse + Eq,
K: JsonWebKey<JS, JT, JU> + Eq,
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>
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
§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.