pub struct CreateEntityByNameRequestBuilder { /* private fields */ }
Expand description
Builder for CreateEntityByNameRequest
.
Implementations§
source§impl CreateEntityByNameRequestBuilder
impl CreateEntityByNameRequestBuilder
sourcepub fn metadata<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn metadata<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
Metadata to be associated with the entity.
sourcepub fn policies<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn policies<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Policies to be tied to the entity.
sourcepub fn disabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn disabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether the entity is disabled. Disabled entities’ associated tokens cannot be used, but are not revoked.
sourcepub fn build(
&self,
) -> Result<CreateEntityByNameRequest, CreateEntityByNameRequestBuilderError>
pub fn build( &self, ) -> Result<CreateEntityByNameRequest, CreateEntityByNameRequestBuilderError>
Trait Implementations§
source§impl Clone for CreateEntityByNameRequestBuilder
impl Clone for CreateEntityByNameRequestBuilder
source§fn clone(&self) -> CreateEntityByNameRequestBuilder
fn clone(&self) -> CreateEntityByNameRequestBuilder
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 CreateEntityByNameRequestBuilder
impl RefUnwindSafe for CreateEntityByNameRequestBuilder
impl Send for CreateEntityByNameRequestBuilder
impl Sync for CreateEntityByNameRequestBuilder
impl Unpin for CreateEntityByNameRequestBuilder
impl UnwindSafe for CreateEntityByNameRequestBuilder
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
)