pub struct CreateOrganizationRoleRequestArgs { /* private fields */ }Available on crate feature
administration-types only.Expand description
Builder for PublicCreateOrganizationRoleBody.
Implementations§
Source§impl CreateOrganizationRoleRequestArgs
impl CreateOrganizationRoleRequestArgs
Sourcepub fn role_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn role_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Unique name for the role.
Sourcepub fn permissions<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn permissions<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Permissions to grant to the role.
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Optional description of the role.
Sourcepub fn build(&self) -> Result<PublicCreateOrganizationRoleBody, OpenAIError>
pub fn build(&self) -> Result<PublicCreateOrganizationRoleBody, OpenAIError>
Builds a new PublicCreateOrganizationRoleBody.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for CreateOrganizationRoleRequestArgs
impl Clone for CreateOrganizationRoleRequestArgs
Source§fn clone(&self) -> CreateOrganizationRoleRequestArgs
fn clone(&self) -> CreateOrganizationRoleRequestArgs
Returns a duplicate 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 CreateOrganizationRoleRequestArgs
impl RefUnwindSafe for CreateOrganizationRoleRequestArgs
impl Send for CreateOrganizationRoleRequestArgs
impl Sync for CreateOrganizationRoleRequestArgs
impl Unpin for CreateOrganizationRoleRequestArgs
impl UnwindSafe for CreateOrganizationRoleRequestArgs
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