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 timestamp 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 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 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
Source§impl PartialEq for AutomationToken
impl PartialEq for AutomationToken
Source§impl Serialize for AutomationToken
impl Serialize for AutomationToken
impl StructuralPartialEq for AutomationToken
Auto Trait Implementations§
impl Freeze for AutomationToken
impl RefUnwindSafe for AutomationToken
impl Send for AutomationToken
impl Sync for AutomationToken
impl Unpin for AutomationToken
impl UnwindSafe for AutomationToken
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