[][src]Struct google_admin1_directory::Privilege

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>,
}

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).

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. This value is returned with Privileges.list().

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

impl Clone for Privilege[src]

impl Debug for Privilege[src]

impl Default for Privilege[src]

impl<'de> Deserialize<'de> for Privilege[src]

impl Resource for Privilege[src]

impl Serialize for Privilege[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any