pub struct SigningKeySet {
pub version: u64,
pub keys: Vec<SigningKey>,
}Expand description
A complete authoritative snapshot from the configured HTTPS cloud.
Fields§
§version: u64§keys: Vec<SigningKey>Implementations§
Source§impl SigningKeySet
impl SigningKeySet
pub fn validate_update( &self, previous: Option<&Self>, ) -> Result<(), &'static str>
pub fn permits_token(&self, kid: &str) -> bool
Trait Implementations§
Source§impl Clone for SigningKeySet
impl Clone for SigningKeySet
Source§impl Debug for SigningKeySet
impl Debug for SigningKeySet
Source§impl<'de> Deserialize<'de> for SigningKeySet
impl<'de> Deserialize<'de> for SigningKeySet
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
impl Eq for SigningKeySet
Source§impl PartialEq for SigningKeySet
impl PartialEq for SigningKeySet
Source§impl Serialize for SigningKeySet
impl Serialize for SigningKeySet
impl StructuralPartialEq for SigningKeySet
Auto Trait Implementations§
impl Forget for SigningKeySet
impl Freeze for SigningKeySet
impl RefUnwindSafe for SigningKeySet
impl Send for SigningKeySet
impl Sync for SigningKeySet
impl Unpin for SigningKeySet
impl UnsafeUnpin for SigningKeySet
impl UnwindSafe for SigningKeySet
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.