pub struct NewApiKeyResponse {
pub api_key: String,
pub id: ApiKeyId,
pub name: String,
}Expand description
Response to a successful API key creation.
JSON schema
{
"description": "Response to a successful API key creation.",
"type": "object",
"required": [
"api_key",
"id",
"name"
],
"properties": {
"api_key": {
"description": "Generated secret API key. There is no way to retrieve this\nkey again through the API, so store it securely.",
"examples": [
"apikey:v5y5QNtlPNVMwkmNjKwFU8bbIu5lMge3yHbyddxAOdXlEo84SEoNn32DUhQaf1KLeI9aOOfnJjhQ1pYzMrU4wQXON6pm6BS7Zgzj46U2b8pwz1280vYBEtx41hiDBRP"
],
"type": "string"
},
"id": {
"$ref": "#/components/schemas/ApiKeyId"
},
"name": {
"description": "API key name provided by the user.",
"examples": [
"my-api-key"
],
"type": "string"
}
}
}Fields§
§api_key: StringGenerated secret API key. There is no way to retrieve this key again through the API, so store it securely.
id: ApiKeyId§name: StringAPI key name provided by the user.
Implementations§
Source§impl NewApiKeyResponse
impl NewApiKeyResponse
pub fn builder() -> NewApiKeyResponse
Trait Implementations§
Source§impl Clone for NewApiKeyResponse
impl Clone for NewApiKeyResponse
Source§impl Debug for NewApiKeyResponse
impl Debug for NewApiKeyResponse
Source§impl<'de> Deserialize<'de> for NewApiKeyResponse
impl<'de> Deserialize<'de> for NewApiKeyResponse
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 From<&NewApiKeyResponse> for NewApiKeyResponse
impl From<&NewApiKeyResponse> for NewApiKeyResponse
Source§fn from(value: &NewApiKeyResponse) -> Self
fn from(value: &NewApiKeyResponse) -> Self
Converts to this type from the input type.
Source§impl From<NewApiKeyResponse> for NewApiKeyResponse
impl From<NewApiKeyResponse> for NewApiKeyResponse
Source§fn from(value: NewApiKeyResponse) -> Self
fn from(value: NewApiKeyResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for NewApiKeyResponse
impl Serialize for NewApiKeyResponse
Source§impl TryFrom<NewApiKeyResponse> for NewApiKeyResponse
impl TryFrom<NewApiKeyResponse> for NewApiKeyResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NewApiKeyResponse) -> Result<Self, ConversionError>
fn try_from(value: NewApiKeyResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NewApiKeyResponse
impl RefUnwindSafe for NewApiKeyResponse
impl Send for NewApiKeyResponse
impl Sync for NewApiKeyResponse
impl Unpin for NewApiKeyResponse
impl UnsafeUnpin for NewApiKeyResponse
impl UnwindSafe for NewApiKeyResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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