Struct google_mybusiness4::api::Admin[][src]

pub struct Admin {
    pub admin_name: Option<String>,
    pub name: Option<String>,
    pub pending_invitation: Option<bool>,
    pub role: Option<String>,
}

An administrator of an Account or a Location.

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

admin_name: Option<String>

The name of the admin. When making the initial invitation, this is the invitee’s email address. On GET calls, the user’s email address is returned if the invitation is still pending. Otherwise, it contains the user’s first and last names.

name: Option<String>

The resource name. For account admins, this is in the form: accounts/{account_id}/admins/{admin_id}

For location admins, this is in the form: accounts/{account_id}/locations/{location_id}/admins/{admin_id}

pending_invitation: Option<bool>

Output only. Indicates whether this admin has a pending invitation for the specified resource.

role: Option<String>

Specifies the AdminRole that this admin uses with the specified Account or Location resource.

Trait Implementations

impl Clone for Admin[src]

impl Debug for Admin[src]

impl Default for Admin[src]

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

impl RequestValue for Admin[src]

impl ResponseResult for Admin[src]

impl Serialize for Admin[src]

Auto Trait Implementations

impl RefUnwindSafe for Admin

impl Send for Admin

impl Sync for Admin

impl Unpin for Admin

impl UnwindSafe for Admin

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