Struct fastly_api::models::automation_token::AutomationToken
source · pub struct AutomationToken {
pub name: Option<String>,
pub role: Option<Role>,
pub services: Option<Vec<String>>,
pub scope: Option<Scope>,
pub expires_at: 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.
Implementations§
source§impl AutomationToken
impl AutomationToken
pub fn new() -> AutomationToken
Trait Implementations§
source§impl Clone for AutomationToken
impl Clone for AutomationToken
source§fn clone(&self) -> AutomationToken
fn clone(&self) -> AutomationToken
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 AutomationToken
impl Debug for AutomationToken
source§impl Default for AutomationToken
impl Default for AutomationToken
source§fn default() -> AutomationToken
fn default() -> AutomationToken
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AutomationToken
impl<'de> Deserialize<'de> for AutomationToken
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