pub struct AutomationTokenResponse {Show 14 fields
pub name: Option<String>,
pub role: Option<String>,
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 customer_id: Option<Box<String>>,
pub ip: Option<String>,
pub user_agent: Option<String>,
pub sudo_expires_at: Option<String>,
pub last_used_at: Option<String>,
}
Fields§
§name: Option<String>
The name of the token.
role: Option<String>
§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>
(optional) A UTC time-stamp of when the token will expire.
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>>
§customer_id: Option<Box<String>>
§ip: Option<String>
The IP address of the client that last used the token.
user_agent: Option<String>
The User-Agent header of the client that last used the token.
sudo_expires_at: Option<String>
§last_used_at: Option<String>
A UTC time-stamp of when the token was last used.
Implementations§
source§impl AutomationTokenResponse
impl AutomationTokenResponse
pub fn new() -> AutomationTokenResponse
Trait Implementations§
source§impl Clone for AutomationTokenResponse
impl Clone for AutomationTokenResponse
source§fn clone(&self) -> AutomationTokenResponse
fn clone(&self) -> AutomationTokenResponse
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 Debug for AutomationTokenResponse
impl Debug for AutomationTokenResponse
source§impl Default for AutomationTokenResponse
impl Default for AutomationTokenResponse
source§fn default() -> AutomationTokenResponse
fn default() -> AutomationTokenResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AutomationTokenResponse
impl<'de> Deserialize<'de> for AutomationTokenResponse
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