pub struct AutomationTokenCreateResponse {Show 13 fields
pub name: Option<String>,
pub role: Option<Role>,
pub services: Option<Vec<String>>,
pub scope: Option<Scope>,
pub expires_at: Option<String>,
pub id: Option<Box<ReadOnlyId>>,
pub user_id: Option<Box<ReadOnlyUserId>>,
pub customer_id: Option<Box<ReadOnlyCustomerId>>,
pub created_at: Option<String>,
pub access_token: Option<String>,
pub tls_access: Option<bool>,
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 timestamp of when the token expires.
id: Option<Box<ReadOnlyId>>
§user_id: Option<Box<ReadOnlyUserId>>
§customer_id: Option<Box<ReadOnlyCustomerId>>
§created_at: Option<String>
A UTC timestamp of when the token was created.
access_token: Option<String>
§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.
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 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 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 for AutomationTokenCreateResponse
impl PartialEq for AutomationTokenCreateResponse
Source§fn eq(&self, other: &AutomationTokenCreateResponse) -> bool
fn eq(&self, other: &AutomationTokenCreateResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AutomationTokenCreateResponse
Auto Trait Implementations§
impl Freeze for AutomationTokenCreateResponse
impl RefUnwindSafe for AutomationTokenCreateResponse
impl Send for AutomationTokenCreateResponse
impl Sync for AutomationTokenCreateResponse
impl Unpin for AutomationTokenCreateResponse
impl UnwindSafe for AutomationTokenCreateResponse
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