pub struct CreateClientResponse {
pub id: Uuid,
pub keyset_id: Uuid,
pub name: String,
pub description: String,
pub client_key: ViturKeyMaterial,
}Expand description
Response message to a CreateClientRequest.
Contains the client_id and the client_key, the latter being a base64 encoded 32 byte key.
The client_key should be considered sensitive and should be stored securely.
Fields§
§id: UuidThe unique ID of the newly created client.
keyset_id: UuidThe ID of the keyset this client is associated with.
name: StringThe name of the client.
description: StringThe description of the client.
client_key: ViturKeyMaterialBase64-encoded 32-byte key material for the client. Store this securely.
Trait Implementations§
Source§impl ComposeSchema for CreateClientResponse
impl ComposeSchema for CreateClientResponse
Source§impl Debug for CreateClientResponse
impl Debug for CreateClientResponse
Source§impl<'de> Deserialize<'de> for CreateClientResponse
impl<'de> Deserialize<'de> for CreateClientResponse
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 CreateClientResponse
impl Serialize for CreateClientResponse
Source§impl ToSchema for CreateClientResponse
impl ToSchema for CreateClientResponse
impl ViturResponse for CreateClientResponse
Auto Trait Implementations§
impl Freeze for CreateClientResponse
impl RefUnwindSafe for CreateClientResponse
impl Send for CreateClientResponse
impl Sync for CreateClientResponse
impl Unpin for CreateClientResponse
impl UnsafeUnpin for CreateClientResponse
impl UnwindSafe for CreateClientResponse
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