pub struct CreateEntityAliasRequestBuilder { /* private fields */ }
Expand description
Builder for CreateEntityAliasRequest
.
Implementations§
source§impl CreateEntityAliasRequestBuilder
impl CreateEntityAliasRequestBuilder
sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Name of the alias. Name should be the identifier of the client in the authentication source. For example, if the alias belongs to userpass backend, the name should be a valid username within userpass auth method. If the alias belongs to GitHub, it should be the GitHub username. If the alias belongs to an approle auth method, the name should be a valid RoleID.
sourcepub fn canonical_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn canonical_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Entity ID to which this alias belongs to.
sourcepub fn mount_accessor<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn mount_accessor<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Accessor of the mount to which the alias should belong to.
sourcepub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
ID of the entity alias. If set, updates the corresponding entity alias.
sourcepub fn custom_metadata<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn custom_metadata<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
A map of arbitrary string to string valued user-provided metadata meant to describe the alias.
sourcepub fn build(
&self,
) -> Result<CreateEntityAliasRequest, CreateEntityAliasRequestBuilderError>
pub fn build( &self, ) -> Result<CreateEntityAliasRequest, CreateEntityAliasRequestBuilderError>
Trait Implementations§
source§impl Clone for CreateEntityAliasRequestBuilder
impl Clone for CreateEntityAliasRequestBuilder
source§fn clone(&self) -> CreateEntityAliasRequestBuilder
fn clone(&self) -> CreateEntityAliasRequestBuilder
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 CreateEntityAliasRequestBuilder
impl RefUnwindSafe for CreateEntityAliasRequestBuilder
impl Send for CreateEntityAliasRequestBuilder
impl Sync for CreateEntityAliasRequestBuilder
impl Unpin for CreateEntityAliasRequestBuilder
impl UnwindSafe for CreateEntityAliasRequestBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)