pub struct AclToken {
pub create_index: u64,
pub accessor_id: String,
pub name: String,
pub type: String,
pub global: bool,
pub create_time: DateTime<Utc>,
pub expiration_time: Option<DateTime<Utc>>,
pub expiration_ttl: Option<TimeDelta>,
pub modify_index: u64,
pub secret_id: String,
pub policies: Vec<String>,
pub roles: Vec<AclTokenRoleLink>,
}
Expand description
ACLToken represents a client token which is used to Authenticate
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§create_index: u64
§accessor_id: String
§name: String
§type: String
§global: bool
§create_time: DateTime<Utc>
§expiration_time: Option<DateTime<Utc>>
ExpirationTime represents the point after which a token should be considered revoked and is eligible for destruction. The zero value of time.Time does not respect json omitempty directives, so we must use a pointer.
expiration_ttl: Option<TimeDelta>
ExpirationTTL is a convenience field for helping set ExpirationTime to a value of CreateTime+ExpirationTTL. This can only be set during token creation. This is a string version of a time.Duration like “2m”.
modify_index: u64
§secret_id: String
§policies: Vec<String>
§roles: Vec<AclTokenRoleLink>
Roles represents the ACL roles that this token is tied to. The token will inherit the permissions of all policies detailed within the role.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AclToken
impl<'de> Deserialize<'de> for AclToken
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
impl StructuralPartialEq for AclToken
Auto Trait Implementations§
impl Freeze for AclToken
impl RefUnwindSafe for AclToken
impl Send for AclToken
impl Sync for AclToken
impl Unpin for AclToken
impl UnwindSafe for AclToken
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