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: String
Generated secret API key. There is no way to retrieve this key again through the API, so store it securely.
id: ApiKeyId
§name: String
API 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§fn clone(&self) -> NewApiKeyResponse
fn clone(&self) -> NewApiKeyResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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 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