pub struct AutomationTokenCreateResponse {Show 15 fields
pub name: Option<String>,
pub role: Option<Role>,
pub services: Option<Vec<String>>,
pub scope: Option<Scope>,
pub expires_at: Option<String>,
pub created_at: Option<String>,
pub deleted_at: Option<String>,
pub updated_at: Option<String>,
pub id: Option<Box<String>>,
pub user_id: Option<Box<String>>,
pub customer_id: Option<Box<String>>,
pub sudo_expires_at: Option<String>,
pub access_token: Option<String>,
pub last_used_at: Option<String>,
pub user_agent: Option<String>,
}Fields§
§name: Option<String>The name of the token.
role: Option<Role>The role on the token.
services: Option<Vec<String>>(Optional) The service IDs of the services the token will have access to. Separate service IDs with a space. If no services are specified, the token will have access to all services on the account.
scope: Option<Scope>A space-delimited list of authorization scope.
expires_at: Option<String>A UTC time-stamp of when the token expires.
created_at: Option<String>A UTC time-stamp of when the token was created.
deleted_at: Option<String>Date and time in ISO 8601 format.
updated_at: Option<String>Date and time in ISO 8601 format.
id: Option<Box<String>>§user_id: Option<Box<String>>§customer_id: Option<Box<String>>§sudo_expires_at: Option<String>§access_token: Option<String>§last_used_at: Option<String>A UTC time-stamp of when the token was last used.
user_agent: Option<String>The User-Agent header of the client that last used the token.
Implementations§
Trait Implementations§
source§impl Clone for AutomationTokenCreateResponse
impl Clone for AutomationTokenCreateResponse
source§fn clone(&self) -> AutomationTokenCreateResponse
fn clone(&self) -> AutomationTokenCreateResponse
Returns a copy 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 Default for AutomationTokenCreateResponse
impl Default for AutomationTokenCreateResponse
source§fn default() -> AutomationTokenCreateResponse
fn default() -> AutomationTokenCreateResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AutomationTokenCreateResponse
impl<'de> Deserialize<'de> for AutomationTokenCreateResponse
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 PartialEq<AutomationTokenCreateResponse> for AutomationTokenCreateResponse
impl PartialEq<AutomationTokenCreateResponse> for AutomationTokenCreateResponse
source§fn eq(&self, other: &AutomationTokenCreateResponse) -> bool
fn eq(&self, other: &AutomationTokenCreateResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.