pub struct AutomationToken {
pub name: Option<String>,
pub role: Option<Role>,
pub roles: Option<Vec<AutomationTokenRole>>,
pub services: Option<Vec<String>>,
pub limit_services: Option<bool>,
pub limit_workspaces: Option<bool>,
pub workspaces: 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 primary role on the token. For tokens with multiple roles, this returns the highest-priority role for backwards compatibility.
roles: Option<Vec<AutomationTokenRole>>All roles assigned to the token. Each role includes an id and name.
services: Option<Vec<String>>The service IDs of the services the token has access to. Empty when limit_services is false (full access) or when the token has no service access.
limit_services: Option<bool>When true, the token is restricted to only the services in the services array. When false, the token has access to all services.
limit_workspaces: Option<bool>When true, the token is restricted to only the workspaces in the workspaces array. When false, the token has access to all workspaces. Only applies to roles that support workspace access.
workspaces: Option<Vec<String>>The workspace IDs of the workspaces the token has access to. Returns an empty array for tokens without workspace access.
scope: Option<Scope>A space-delimited list of authorization scope.
expires_at: Option<String>A UTC timestamp of when the token expires.