pub struct UserAction {
pub payload: Option<String>,
pub type_: Option<String>,
}Expand description
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§
§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.
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.
Trait Implementations§
Source§impl Clone for UserAction
impl Clone for UserAction
Source§fn clone(&self) -> UserAction
fn clone(&self) -> UserAction
Returns a duplicate 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 UserAction
impl Debug for UserAction
Source§impl Default for UserAction
impl Default for UserAction
Source§fn default() -> UserAction
fn default() -> UserAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserAction
impl<'de> Deserialize<'de> for UserAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UserAction
impl Serialize for UserAction
impl Part for UserAction
Auto Trait Implementations§
impl Freeze for UserAction
impl RefUnwindSafe for UserAction
impl Send for UserAction
impl Sync for UserAction
impl Unpin for UserAction
impl UnwindSafe for UserAction
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