pub struct AclTokenListStubBuilder { /* private fields */ }
Expand description
Builder for AclTokenListStub
.
Implementations§
Source§impl AclTokenListStubBuilder
impl AclTokenListStubBuilder
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. A nil value indicates no expiration has been set on the token.
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn accessor_id(&mut self, value: String) -> &mut Self
pub fn policies(&mut self, value: Vec<String>) -> &mut Self
pub fn roles(&mut self, value: Vec<AclTokenRoleLink>) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
Sourcepub fn build(&self) -> Result<AclTokenListStub, AclTokenListStubBuilderError>
pub fn build(&self) -> Result<AclTokenListStub, AclTokenListStubBuilderError>
Trait Implementations§
Source§impl Clone for AclTokenListStubBuilder
impl Clone for AclTokenListStubBuilder
Source§fn clone(&self) -> AclTokenListStubBuilder
fn clone(&self) -> AclTokenListStubBuilder
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 AclTokenListStubBuilder
impl RefUnwindSafe for AclTokenListStubBuilder
impl Send for AclTokenListStubBuilder
impl Sync for AclTokenListStubBuilder
impl Unpin for AclTokenListStubBuilder
impl UnwindSafe for AclTokenListStubBuilder
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