Struct google_admin1_directory::RoleAssignment
source · pub struct RoleAssignment {
pub assigned_to: Option<String>,
pub kind: Option<String>,
pub etag: Option<String>,
pub role_assignment_id: Option<String>,
pub role_id: Option<String>,
pub scope_type: Option<String>,
pub org_unit_id: Option<String>,
}Expand description
JSON template for roleAssignment 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).
- insert role assignments (request|response)
- list role assignments (none)
- delete role assignments (none)
- get role assignments (response)
Fields§
§assigned_to: Option<String>The unique ID of the user this role is assigned to.
kind: Option<String>The type of the API resource. This is always admin#directory#roleAssignment.
etag: Option<String>ETag of the resource.
role_assignment_id: Option<String>ID of this roleAssignment.
role_id: Option<String>The ID of the role that is assigned.
scope_type: Option<String>The scope in which this role is assigned. Possible values are:
- CUSTOMER
- ORG_UNIT
org_unit_id: Option<String>If the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to.
Trait Implementations§
source§impl Clone for RoleAssignment
impl Clone for RoleAssignment
source§fn clone(&self) -> RoleAssignment
fn clone(&self) -> RoleAssignment
Returns a copy 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 Debug for RoleAssignment
impl Debug for RoleAssignment
source§impl Default for RoleAssignment
impl Default for RoleAssignment
source§fn default() -> RoleAssignment
fn default() -> RoleAssignment
Returns the “default value” for a type. Read more
source§impl Deserialize for RoleAssignment
impl Deserialize for RoleAssignment
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for RoleAssignment
impl Serialize for RoleAssignment
impl RequestValue for RoleAssignment
impl Resource for RoleAssignment
impl ResponseResult for RoleAssignment
Auto Trait Implementations§
impl Freeze for RoleAssignment
impl RefUnwindSafe for RoleAssignment
impl Send for RoleAssignment
impl Sync for RoleAssignment
impl Unpin for RoleAssignment
impl UnwindSafe for RoleAssignment
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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