pub struct ClientInfo {
pub client_pk: PublicKey,
pub created_at: TimestampMs,
pub expires_at: Option<TimestampMs>,
pub label: Option<String>,
pub scopes: Vec<String>,
pub permissions: Vec<String>,
pub effective_permissions: Vec<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.
scopes: Vec<String>The scope aliases granted to this client.
permissions: Vec<String>Extra permissions granted explicitly, beyond those from scopes.
Each permission grants access to a single API endpoint,
e.g. "create_invoice".
Unstable: permission ids are not part of the stable API and may be
renamed. Avoid matching on specific ids; prefer scopes instead.
effective_permissions: Vec<String>Every permission this client currently holds: the union of all
scopes’ permissions plus the explicit permissions.
Unstable: permission ids are not part of the stable API and may be
renamed. Avoid matching on specific ids; prefer scopes instead.