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