pub struct AutomationTokenResponse {
pub name: Option<String>,
pub role: Option<String>,
pub services: Option<Vec<String>>,
pub scope: Option<Scope>,
pub expires_at: Option<String>,
pub id: Option<Box<ReadOnlyId>>,
pub customer_id: Option<Box<ReadOnlyCustomerId>>,
pub ip: Option<String>,
pub user_agent: Option<String>,
pub tls_access: Option<bool>,
pub last_used_at: Option<String>,
pub created_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 timestamp of when the token will expire.
id: Option<Box<ReadOnlyId>>
§customer_id: Option<Box<ReadOnlyCustomerId>>
§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.
tls_access: Option<bool>
Indicates whether TLS access is enabled for the token.
last_used_at: Option<String>
A UTC timestamp of when the token was last used.
created_at: Option<String>
A UTC timestamp of when the token was created.
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 duplicate 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
Source§impl PartialEq for AutomationTokenResponse
impl PartialEq for AutomationTokenResponse
Source§impl Serialize for AutomationTokenResponse
impl Serialize for AutomationTokenResponse
impl StructuralPartialEq for AutomationTokenResponse
Auto Trait Implementations§
impl Freeze for AutomationTokenResponse
impl RefUnwindSafe for AutomationTokenResponse
impl Send for AutomationTokenResponse
impl Sync for AutomationTokenResponse
impl Unpin for AutomationTokenResponse
impl UnwindSafe for AutomationTokenResponse
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