pub struct UpdateOrganizationRoleRequestArgs { /* private fields */ }Available on crate feature
administration-types only.Expand description
Builder for PublicUpdateOrganizationRoleBody.
Implementations§
Source§impl UpdateOrganizationRoleRequestArgs
impl UpdateOrganizationRoleRequestArgs
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
Updated set of permissions for 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
New description for the role.
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
New name for the role.
Sourcepub fn build(&self) -> Result<PublicUpdateOrganizationRoleBody, OpenAIError>
pub fn build(&self) -> Result<PublicUpdateOrganizationRoleBody, OpenAIError>
Builds a new PublicUpdateOrganizationRoleBody.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for UpdateOrganizationRoleRequestArgs
impl Clone for UpdateOrganizationRoleRequestArgs
Source§fn clone(&self) -> UpdateOrganizationRoleRequestArgs
fn clone(&self) -> UpdateOrganizationRoleRequestArgs
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 UpdateOrganizationRoleRequestArgs
impl RefUnwindSafe for UpdateOrganizationRoleRequestArgs
impl Send for UpdateOrganizationRoleRequestArgs
impl Sync for UpdateOrganizationRoleRequestArgs
impl Unpin for UpdateOrganizationRoleRequestArgs
impl UnwindSafe for UpdateOrganizationRoleRequestArgs
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