pub struct ClientInfo {
pub client_pk: PublicKey,
pub created_at: TimestampMs,
pub expires_at: Option<TimestampMs>,
pub label: Option<String>,
}Expand description
Information about a client that can authenticate with a Lexe node.
Fields§
§client_pk: PublicKeyThe public key of the client.
created_at: TimestampMsThe time at which the client was created, in milliseconds since the UNIX epoch.
expires_at: Option<TimestampMs>The time at which the client expires, in milliseconds since the UNIX epoch.
None means that the client will never expire.
label: Option<String>An optional label for the client.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClientInfo
impl<'de> Deserialize<'de> for ClientInfo
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 From<RevocableClient> for ClientInfo
impl From<RevocableClient> for ClientInfo
Auto Trait Implementations§
impl Freeze for ClientInfo
impl RefUnwindSafe for ClientInfo
impl Send for ClientInfo
impl Sync for ClientInfo
impl Unpin for ClientInfo
impl UnwindSafe for ClientInfo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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