pub struct TemporaryKeyMetadata {
pub key_id: KeyId,
pub state: String,
pub issued_at: u64,
pub expires_at: u64,
pub label: Option<String>,
pub namespace: Option<u64>,
}Fields§
§key_id: KeyId§state: String§issued_at: u64§expires_at: u64§label: Option<String>§namespace: Option<u64>The namespace this key was issued into. Absent for a key that owns the one
its id names, which is also how a relay without namespaces reports every
key; Self::effective_namespace covers both.
Implementations§
Source§impl TemporaryKeyMetadata
impl TemporaryKeyMetadata
Sourcepub fn effective_namespace(&self) -> u64
pub fn effective_namespace(&self) -> u64
The namespace this key’s credential operates in.
Trait Implementations§
Source§impl Clone for TemporaryKeyMetadata
impl Clone for TemporaryKeyMetadata
Source§impl Debug for TemporaryKeyMetadata
impl Debug for TemporaryKeyMetadata
Source§impl<'de> Deserialize<'de> for TemporaryKeyMetadata
impl<'de> Deserialize<'de> for TemporaryKeyMetadata
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
Auto Trait Implementations§
impl Forget for TemporaryKeyMetadata
impl Freeze for TemporaryKeyMetadata
impl RefUnwindSafe for TemporaryKeyMetadata
impl Send for TemporaryKeyMetadata
impl Sync for TemporaryKeyMetadata
impl Unpin for TemporaryKeyMetadata
impl UnsafeUnpin for TemporaryKeyMetadata
impl UnwindSafe for TemporaryKeyMetadata
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<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