pub struct CreateApiKeyResponse {
pub plaintext: Option<String>,
pub prefix: String,
pub label: Option<String>,
pub created_at: f64,
}Fields§
§plaintext: Option<String>Plaintext API key. Only present on a fresh mint (201 Created).
Never included when an existing key is returned idempotently.
prefix: String§label: Option<String>§created_at: f64Trait Implementations§
Source§impl ComposeSchema for CreateApiKeyResponse
impl ComposeSchema for CreateApiKeyResponse
Source§impl Serialize for CreateApiKeyResponse
impl Serialize for CreateApiKeyResponse
Auto Trait Implementations§
impl Freeze for CreateApiKeyResponse
impl RefUnwindSafe for CreateApiKeyResponse
impl Send for CreateApiKeyResponse
impl Sync for CreateApiKeyResponse
impl Unpin for CreateApiKeyResponse
impl UnsafeUnpin for CreateApiKeyResponse
impl UnwindSafe for CreateApiKeyResponse
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
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