pub struct IssuedKey {
pub key_id: u64,
pub state: String,
pub issued_at: u64,
pub expires_at: u64,
pub label: Option<String>,
pub credential: String,
}Expand description
A temporary credential, with the secret the relay just minted.
credential is empty on every response but issue, renew, and reveal — the
relay does not hand back key material it has already delivered once.
Fields§
§key_id: u64§state: String§issued_at: u64§expires_at: u64§label: Option<String>§credential: StringTrait Implementations§
impl Eq for IssuedKey
Source§impl From<IssuedTemporaryKey> for IssuedKey
impl From<IssuedTemporaryKey> for IssuedKey
Source§fn from(value: IssuedTemporaryKey) -> Self
fn from(value: IssuedTemporaryKey) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for IssuedKey
Auto Trait Implementations§
impl Freeze for IssuedKey
impl RefUnwindSafe for IssuedKey
impl Send for IssuedKey
impl Sync for IssuedKey
impl Unpin for IssuedKey
impl UnsafeUnpin for IssuedKey
impl UnwindSafe for IssuedKey
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§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