[][src]Struct google_mirror1::UserAction

pub struct UserAction {
    pub type_: Option<String>,
    pub payload: Option<String>,
}

Represents an action taken by the user that triggered a notification.

This type is not used in any activity, and only used as part of another schema.

Fields

type_: Option<String>

The type of action. The value of this can be:

  • SHARE - the user shared an item.
  • REPLY - the user replied to an item.
  • REPLY_ALL - the user replied to all recipients of an item.
  • CUSTOM - the user selected a custom menu item on the timeline item.
  • DELETE - the user deleted the item.
  • PIN - the user pinned the item.
  • UNPIN - the user unpinned the item.
  • LAUNCH - the user initiated a voice command. In the future, additional types may be added. UserActions with unrecognized types should be ignored.
payload: Option<String>

An optional payload for the action.

For actions of type CUSTOM, this is the ID of the custom menu item that was selected.

Trait Implementations

impl Part for UserAction[src]

impl Clone for UserAction[src]

impl Default for UserAction[src]

impl Debug for UserAction[src]

impl Serialize for UserAction[src]

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

Auto Trait Implementations

Blanket Implementations

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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

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