pub struct CreateClientRequest<'a> {
pub keyset_id: Option<IdentifiedBy>,
pub name: Cow<'a, str>,
pub description: Cow<'a, str>,
}Expand description
Request message to create a new client with the given name and description.
If keyset_id is omitted, the workspace’s default keyset is used (created if necessary).
Requires the client:create scope.
Response is a CreateClientResponse.
Fields§
§keyset_id: Option<IdentifiedBy>The keyset to associate the client with. Accepts a UUID or a name string. If omitted, the workspace’s default keyset is used.
name: Cow<'a, str>A human-readable name for the client.
description: Cow<'a, str>A description of the client.
Trait Implementations§
Source§impl<'a> ComposeSchema for CreateClientRequest<'a>
impl<'a> ComposeSchema for CreateClientRequest<'a>
Source§impl<'a> Debug for CreateClientRequest<'a>
impl<'a> Debug for CreateClientRequest<'a>
Source§impl<'de, 'a> Deserialize<'de> for CreateClientRequest<'a>
impl<'de, 'a> Deserialize<'de> for CreateClientRequest<'a>
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 Dummy<CreateKeysetResponse> for CreateClientRequest<'_>
Generate a random CreateClientRequest from a CreateKeysetResponse.
impl Dummy<CreateKeysetResponse> for CreateClientRequest<'_>
Generate a random CreateClientRequest from a CreateKeysetResponse.
Source§impl Dummy<Keyset> for CreateClientRequest<'_>
Generate a random CreateClientRequest for the given Keyset.
The name and description are random.
impl Dummy<Keyset> for CreateClientRequest<'_>
Generate a random CreateClientRequest for the given Keyset.
The name and description are random.
Source§impl<'a> Serialize for CreateClientRequest<'a>
impl<'a> Serialize for CreateClientRequest<'a>
Source§impl<'a> ToSchema for CreateClientRequest<'a>
impl<'a> ToSchema for CreateClientRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateClientRequest<'a>
impl<'a> RefUnwindSafe for CreateClientRequest<'a>
impl<'a> Send for CreateClientRequest<'a>
impl<'a> Sync for CreateClientRequest<'a>
impl<'a> Unpin for CreateClientRequest<'a>
impl<'a> UnsafeUnpin for CreateClientRequest<'a>
impl<'a> UnwindSafe for CreateClientRequest<'a>
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
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