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§
Auto Trait Implementations§
impl Freeze for CreateOrganizationRoleRequestArgs
impl RefUnwindSafe for CreateOrganizationRoleRequestArgs
impl Send for CreateOrganizationRoleRequestArgs
impl Sync for CreateOrganizationRoleRequestArgs
impl Unpin for CreateOrganizationRoleRequestArgs
impl UnsafeUnpin 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