pub struct Role {
pub kind: Option<String>,
pub role_id: Option<String>,
pub role_description: Option<String>,
pub etag: Option<String>,
pub is_super_admin_role: Option<bool>,
pub role_name: Option<String>,
pub is_system_role: Option<bool>,
pub role_privileges: Option<Vec<RoleRolePrivileges>>,
}Expand description
JSON template for role resource in Directory API.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- update roles (request|response)
- insert roles (request|response)
- get roles (response)
- patch roles (request|response)
- list roles (none)
- delete roles (none)
Fields§
§kind: Option<String>The type of the API resource. This is always admin#directory#role.
role_id: Option<String>ID of the role.
role_description: Option<String>A short description of the role.
etag: Option<String>ETag of the resource.
is_super_admin_role: Option<bool>Returns true if the role is a super admin role.
role_name: Option<String>Name of the role.
is_system_role: Option<bool>Returns true if this is a pre-defined system role.
role_privileges: Option<Vec<RoleRolePrivileges>>The set of privileges that are granted to this role.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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
impl RequestValue for Role
impl Resource for Role
impl ResponseResult for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more