pub struct CreateClientRequest {
pub expires_at: Option<TimestampMs>,
pub label: Option<String>,
pub scopes: BTreeSet<Scope>,
pub permissions: Vec<String>,
}Expand description
A request to create a new client and client credentials that can authenticate with a Lexe node.
Fields§
§expires_at: Option<TimestampMs>An optional expiration for the client.
None indicates that the client should never expire. Use carefully!
label: Option<String>An optional label for the client.
Must be at most 64 UTF-8 bytes if provided.
scopes: BTreeSet<Scope>The scopes to grant the client.
Any overlapping permissions are unioned together.
At least one of scopes or permissions must be non-empty.
permissions: Vec<String>Extra permissions to grant explicitly, beyond those from scopes,
by string id (e.g. "create_invoice"). Each permission grants access
to a single API endpoint.
Unstable: permission ids are not part of the stable API and may be
renamed. Avoid matching on specific ids; prefer scopes instead.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateClientRequest
impl<'de> Deserialize<'de> for CreateClientRequest
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 Serialize for CreateClientRequest
impl Serialize for CreateClientRequest
Auto Trait Implementations§
impl Freeze for CreateClientRequest
impl RefUnwindSafe for CreateClientRequest
impl Send for CreateClientRequest
impl Sync for CreateClientRequest
impl Unpin for CreateClientRequest
impl UnwindSafe for CreateClientRequest
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