Struct google_admin1_directory::Privilege
source · pub struct Privilege {
pub kind: Option<String>,
pub service_id: Option<String>,
pub privilege_name: Option<String>,
pub etag: Option<String>,
pub service_name: Option<String>,
pub child_privileges: Option<Vec<Privilege>>,
pub is_ou_scopable: Option<bool>,
}Expand description
JSON template for privilege 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).
- list privileges (none)
Fields§
§kind: Option<String>The type of the API resource. This is always admin#directory#privilege.
service_id: Option<String>The obfuscated ID of the service this privilege is for.
privilege_name: Option<String>The name of the privilege.
etag: Option<String>ETag of the resource.
service_name: Option<String>The name of the service this privilege is for.
child_privileges: Option<Vec<Privilege>>A list of child privileges. Privileges for a service form a tree. Each privilege can have a list of child privileges; this list is empty for a leaf privilege.
is_ou_scopable: Option<bool>If the privilege can be restricted to an organization unit.
Trait Implementations§
source§impl Deserialize for Privilege
impl Deserialize for Privilege
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
impl Resource for Privilege
Auto Trait Implementations§
impl Freeze for Privilege
impl RefUnwindSafe for Privilege
impl Send for Privilege
impl Sync for Privilege
impl Unpin for Privilege
impl UnwindSafe for Privilege
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