pub struct CreateServiceAccountTokenRequest {
pub name: Option<String>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
CreateServiceAccountTokenRequest
Fields§
§name: Option<String>The display name of the API token
expires_at: Option<DateTime<Utc>>The datetime at which the API token should expire. If not provided, the API token will remain vaild indefinitely unless manually revoked
Implementations§
Trait Implementations§
Source§impl Clone for CreateServiceAccountTokenRequest
impl Clone for CreateServiceAccountTokenRequest
Source§fn clone(&self) -> CreateServiceAccountTokenRequest
fn clone(&self) -> CreateServiceAccountTokenRequest
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 Default for CreateServiceAccountTokenRequest
impl Default for CreateServiceAccountTokenRequest
Source§fn default() -> CreateServiceAccountTokenRequest
fn default() -> CreateServiceAccountTokenRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateServiceAccountTokenRequest
impl<'de> Deserialize<'de> for CreateServiceAccountTokenRequest
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
impl StructuralPartialEq for CreateServiceAccountTokenRequest
Auto Trait Implementations§
impl Freeze for CreateServiceAccountTokenRequest
impl RefUnwindSafe for CreateServiceAccountTokenRequest
impl Send for CreateServiceAccountTokenRequest
impl Sync for CreateServiceAccountTokenRequest
impl Unpin for CreateServiceAccountTokenRequest
impl UnsafeUnpin for CreateServiceAccountTokenRequest
impl UnwindSafe for CreateServiceAccountTokenRequest
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