pub struct Credentials<K> {
pub name: String,
pub key: K,
}Expand description
Credentials (name and key) for a requestor or yivi server.
To be used with K either SigningKey or VerifyingKey.
Fields§
§name: String§key: KImplementations§
Source§impl Credentials<SigningKey>
impl Credentials<SigningKey>
Sourcepub fn to_verifying_credentials(&self) -> Credentials<VerifyingKey>
pub fn to_verifying_credentials(&self) -> Credentials<VerifyingKey>
Turn these signing credentials into verifying credentials
Trait Implementations§
Source§impl<K: Clone> Clone for Credentials<K>
impl<K: Clone> Clone for Credentials<K>
Source§fn clone(&self) -> Credentials<K>
fn clone(&self) -> Credentials<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: Debug> Debug for Credentials<K>
impl<K: Debug> Debug for Credentials<K>
Source§impl<'de, K> Deserialize<'de> for Credentials<K>where
K: Deserialize<'de>,
impl<'de, K> Deserialize<'de> for Credentials<K>where
K: Deserialize<'de>,
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<K: PartialEq> PartialEq for Credentials<K>
impl<K: PartialEq> PartialEq for Credentials<K>
Source§impl<K> Serialize for Credentials<K>where
K: Serialize,
impl<K> Serialize for Credentials<K>where
K: Serialize,
impl<K: Eq> Eq for Credentials<K>
impl<K> StructuralPartialEq for Credentials<K>
Auto Trait Implementations§
impl<K> Freeze for Credentials<K>where
K: Freeze,
impl<K> RefUnwindSafe for Credentials<K>where
K: RefUnwindSafe,
impl<K> Send for Credentials<K>where
K: Send,
impl<K> Sync for Credentials<K>where
K: Sync,
impl<K> Unpin for Credentials<K>where
K: Unpin,
impl<K> UnsafeUnpin for Credentials<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for Credentials<K>where
K: UnwindSafe,
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<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.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