pub struct CreateApiKeyRequest {
pub expires_at: Option<String>,
pub expires_in: Option<String>,
pub name: String,
pub scoped_entity_ids: Option<Vec<String>>,
pub scoped_roles: Option<Vec<String>>,
}Expand description
CreateApiKeyRequest
JSON schema
{
"type": "object",
"required": [
"name"
],
"properties": {
"expires_at": {
"description": "RFC3339 absolute expiration timestamp. Mutually exclusive with expires_in.",
"type": [
"string",
"null"
]
},
"expires_in": {
"description": "Duration from now, e.g. \"1d\", \"2w\", \"90d\", \"P30D\". Mutually exclusive with expires_at.",
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"scoped_entity_ids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"scoped_roles": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
}
}
}Fields§
§expires_at: Option<String>RFC3339 absolute expiration timestamp. Mutually exclusive with expires_in.
expires_in: Option<String>Duration from now, e.g. “1d”, “2w”, “90d”, “P30D”. Mutually exclusive with expires_at.
name: String§scoped_entity_ids: Option<Vec<String>>§scoped_roles: Option<Vec<String>>Trait Implementations§
Source§impl Clone for CreateApiKeyRequest
impl Clone for CreateApiKeyRequest
Source§fn clone(&self) -> CreateApiKeyRequest
fn clone(&self) -> CreateApiKeyRequest
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 CreateApiKeyRequest
impl Debug for CreateApiKeyRequest
Source§impl<'de> Deserialize<'de> for CreateApiKeyRequest
impl<'de> Deserialize<'de> for CreateApiKeyRequest
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 CreateApiKeyRequest
impl RefUnwindSafe for CreateApiKeyRequest
impl Send for CreateApiKeyRequest
impl Sync for CreateApiKeyRequest
impl Unpin for CreateApiKeyRequest
impl UnsafeUnpin for CreateApiKeyRequest
impl UnwindSafe for CreateApiKeyRequest
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