pub struct CreateApiKeyResponse {
pub base_url: String,
pub created_at: Option<String>,
pub expires_at: String,
pub id: String,
pub name: String,
pub scoped_entity_ids: Option<Vec<String>>,
pub scoped_roles: Option<Vec<String>>,
pub token: Option<String>,
pub token_suffix: String,
}Expand description
Response for API key creation (token shown once).
JSON schema
{
"description": "Response for API key creation (token shown once).",
"type": "object",
"required": [
"base_url",
"expires_at",
"id",
"name",
"token_suffix"
],
"properties": {
"base_url": {
"type": "string"
},
"created_at": {
"type": [
"string",
"null"
]
},
"expires_at": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"scoped_entity_ids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"scoped_roles": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"token": {
"type": [
"string",
"null"
]
},
"token_suffix": {
"type": "string"
}
}
}Fields§
§base_url: String§created_at: Option<String>§expires_at: String§id: String§name: String§scoped_entity_ids: Option<Vec<String>>§scoped_roles: Option<Vec<String>>§token: Option<String>§token_suffix: StringTrait Implementations§
Source§impl Clone for CreateApiKeyResponse
impl Clone for CreateApiKeyResponse
Source§fn clone(&self) -> CreateApiKeyResponse
fn clone(&self) -> CreateApiKeyResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateApiKeyResponse
impl Debug for CreateApiKeyResponse
Source§impl<'de> Deserialize<'de> for CreateApiKeyResponse
impl<'de> Deserialize<'de> for CreateApiKeyResponse
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
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