pub struct AclTokenBuilder { /* private fields */ }
Expand description
Builder for AclToken
.
Implementations§
Source§impl AclTokenBuilder
impl AclTokenBuilder
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn accessor_id(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
pub fn global(&mut self, value: bool) -> &mut Self
pub fn create_time(&mut self, value: DateTime<Utc>) -> &mut Self
Sourcepub fn expiration_time(&mut self, value: Option<DateTime<Utc>>) -> &mut Self
pub fn expiration_time(&mut self, value: Option<DateTime<Utc>>) -> &mut Self
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.
Sourcepub fn expiration_ttl(&mut self, value: Option<TimeDelta>) -> &mut Self
pub fn expiration_ttl(&mut self, value: Option<TimeDelta>) -> &mut Self
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”.
pub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn secret_id(&mut self, value: String) -> &mut Self
pub fn policies(&mut self, value: Vec<String>) -> &mut Self
Sourcepub fn roles(&mut self, value: Vec<AclTokenRoleLink>) -> &mut Self
pub fn roles(&mut self, value: Vec<AclTokenRoleLink>) -> &mut Self
Roles represents the ACL roles that this token is tied to. The token will inherit the permissions of all policies detailed within the role.
Trait Implementations§
Source§impl Clone for AclTokenBuilder
impl Clone for AclTokenBuilder
Source§fn clone(&self) -> AclTokenBuilder
fn clone(&self) -> AclTokenBuilder
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 moreAuto Trait Implementations§
impl Freeze for AclTokenBuilder
impl RefUnwindSafe for AclTokenBuilder
impl Send for AclTokenBuilder
impl Sync for AclTokenBuilder
impl Unpin for AclTokenBuilder
impl UnwindSafe for AclTokenBuilder
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