pub struct ApiKeyResponse {
pub api_key: String,
pub created_at: DateTime<Utc>,
pub project_id: i64,
}Expand description
API key response.
JSON schema
{
"title": "ApiKeyResponse",
"description": "API key response.",
"type": "object",
"required": [
"api_key",
"created_at",
"project_id"
],
"properties": {
"api_key": {
"title": "Api Key",
"description": "API key for the project",
"type": "string"
},
"created_at": {
"title": "Created At",
"description": "API key creation timestamp",
"type": "string",
"format": "date-time"
},
"project_id": {
"title": "Project Id",
"description": "Project ID",
"type": "integer"
}
}
}Fields§
§api_key: StringAPI key for the project
created_at: DateTime<Utc>API key creation timestamp
project_id: i64Project ID
Implementations§
Source§impl ApiKeyResponse
impl ApiKeyResponse
pub fn builder() -> ApiKeyResponse
Trait Implementations§
Source§impl Clone for ApiKeyResponse
impl Clone for ApiKeyResponse
Source§fn clone(&self) -> ApiKeyResponse
fn clone(&self) -> ApiKeyResponse
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 ApiKeyResponse
impl Debug for ApiKeyResponse
Source§impl<'de> Deserialize<'de> for ApiKeyResponse
impl<'de> Deserialize<'de> for ApiKeyResponse
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<&ApiKeyResponse> for ApiKeyResponse
impl From<&ApiKeyResponse> for ApiKeyResponse
Source§fn from(value: &ApiKeyResponse) -> Self
fn from(value: &ApiKeyResponse) -> Self
Converts to this type from the input type.
Source§impl From<ApiKeyResponse> for ApiKeyResponse
impl From<ApiKeyResponse> for ApiKeyResponse
Source§fn from(value: ApiKeyResponse) -> Self
fn from(value: ApiKeyResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for ApiKeyResponse
impl Serialize for ApiKeyResponse
Source§impl TryFrom<ApiKeyResponse> for ApiKeyResponse
impl TryFrom<ApiKeyResponse> for ApiKeyResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ApiKeyResponse) -> Result<Self, ConversionError>
fn try_from(value: ApiKeyResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ApiKeyResponse
impl RefUnwindSafe for ApiKeyResponse
impl Send for ApiKeyResponse
impl Sync for ApiKeyResponse
impl Unpin for ApiKeyResponse
impl UnwindSafe for ApiKeyResponse
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