pub struct AutomationTokenCreateRequestAttributes {
pub name: Option<String>,
pub role: Option<Role>,
pub services: Option<Vec<String>>,
pub scope: Option<Scope>,
pub expires_at: Option<String>,
pub tls_access: Option<bool>,
}
Fields§
§name: Option<String>
name of the token
role: Option<Role>
§services: Option<Vec<String>>
List of service ids to limit the token
scope: Option<Scope>
§expires_at: Option<String>
A UTC timestamp of when the token will expire.
tls_access: Option<bool>
Indicates whether TLS access is enabled for the token.
Implementations§
Trait Implementations§
Source§impl Clone for AutomationTokenCreateRequestAttributes
impl Clone for AutomationTokenCreateRequestAttributes
Source§fn clone(&self) -> AutomationTokenCreateRequestAttributes
fn clone(&self) -> AutomationTokenCreateRequestAttributes
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 AutomationTokenCreateRequestAttributes
impl Default for AutomationTokenCreateRequestAttributes
Source§fn default() -> AutomationTokenCreateRequestAttributes
fn default() -> AutomationTokenCreateRequestAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutomationTokenCreateRequestAttributes
impl<'de> Deserialize<'de> for AutomationTokenCreateRequestAttributes
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 AutomationTokenCreateRequestAttributes
impl PartialEq for AutomationTokenCreateRequestAttributes
Source§fn eq(&self, other: &AutomationTokenCreateRequestAttributes) -> bool
fn eq(&self, other: &AutomationTokenCreateRequestAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AutomationTokenCreateRequestAttributes
Auto Trait Implementations§
impl Freeze for AutomationTokenCreateRequestAttributes
impl RefUnwindSafe for AutomationTokenCreateRequestAttributes
impl Send for AutomationTokenCreateRequestAttributes
impl Sync for AutomationTokenCreateRequestAttributes
impl Unpin for AutomationTokenCreateRequestAttributes
impl UnwindSafe for AutomationTokenCreateRequestAttributes
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