pub struct PublicCreateOrganizationRoleBody {
pub role_name: String,
pub permissions: Vec<String>,
pub description: Option<String>,
}Available on crate feature
administration-types only.Expand description
Request payload for creating a custom role.
Fields§
§role_name: StringUnique name for the role.
permissions: Vec<String>Permissions to grant to the role.
description: Option<String>Optional description of the role.
Trait Implementations§
Source§impl Clone for PublicCreateOrganizationRoleBody
impl Clone for PublicCreateOrganizationRoleBody
Source§fn clone(&self) -> PublicCreateOrganizationRoleBody
fn clone(&self) -> PublicCreateOrganizationRoleBody
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 moreSource§impl<'de> Deserialize<'de> for PublicCreateOrganizationRoleBody
impl<'de> Deserialize<'de> for PublicCreateOrganizationRoleBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PublicCreateOrganizationRoleBody
impl PartialEq for PublicCreateOrganizationRoleBody
Source§fn eq(&self, other: &PublicCreateOrganizationRoleBody) -> bool
fn eq(&self, other: &PublicCreateOrganizationRoleBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PublicCreateOrganizationRoleBody
Auto Trait Implementations§
impl Freeze for PublicCreateOrganizationRoleBody
impl RefUnwindSafe for PublicCreateOrganizationRoleBody
impl Send for PublicCreateOrganizationRoleBody
impl Sync for PublicCreateOrganizationRoleBody
impl Unpin for PublicCreateOrganizationRoleBody
impl UnwindSafe for PublicCreateOrganizationRoleBody
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