pub enum Action {
CameraAction(Box<CameraAction>),
CameraRollAction(Box<CameraRollAction>),
ClipboardAction(Box<ClipboardAction>),
DatetimePickerAction(Box<DatetimePickerAction>),
LocationAction(Box<LocationAction>),
MessageAction(Box<MessageAction>),
PostbackAction(Box<PostbackAction>),
RichMenuSwitchAction(Box<RichMenuSwitchAction>),
UriAction(Box<UriAction>),
}Expand description
Action enum using newtype pattern (wraps structs in Box) This is automatically generated from discriminated schemas
Variants§
CameraAction(Box<CameraAction>)
CameraRollAction(Box<CameraRollAction>)
ClipboardAction(Box<ClipboardAction>)
DatetimePickerAction(Box<DatetimePickerAction>)
LocationAction(Box<LocationAction>)
MessageAction(Box<MessageAction>)
PostbackAction(Box<PostbackAction>)
RichMenuSwitchAction(Box<RichMenuSwitchAction>)
UriAction(Box<UriAction>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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 From<CameraAction> for Action
impl From<CameraAction> for Action
Source§fn from(value: CameraAction) -> Self
fn from(value: CameraAction) -> Self
Converts to this type from the input type.
Source§impl From<CameraRollAction> for Action
impl From<CameraRollAction> for Action
Source§fn from(value: CameraRollAction) -> Self
fn from(value: CameraRollAction) -> Self
Converts to this type from the input type.
Source§impl From<ClipboardAction> for Action
impl From<ClipboardAction> for Action
Source§fn from(value: ClipboardAction) -> Self
fn from(value: ClipboardAction) -> Self
Converts to this type from the input type.
Source§impl From<DatetimePickerAction> for Action
impl From<DatetimePickerAction> for Action
Source§fn from(value: DatetimePickerAction) -> Self
fn from(value: DatetimePickerAction) -> Self
Converts to this type from the input type.
Source§impl From<LocationAction> for Action
impl From<LocationAction> for Action
Source§fn from(value: LocationAction) -> Self
fn from(value: LocationAction) -> Self
Converts to this type from the input type.
Source§impl From<MessageAction> for Action
impl From<MessageAction> for Action
Source§fn from(value: MessageAction) -> Self
fn from(value: MessageAction) -> Self
Converts to this type from the input type.
Source§impl From<PostbackAction> for Action
impl From<PostbackAction> for Action
Source§fn from(value: PostbackAction) -> Self
fn from(value: PostbackAction) -> Self
Converts to this type from the input type.
Source§impl From<RichMenuSwitchAction> for Action
impl From<RichMenuSwitchAction> for Action
Source§fn from(value: RichMenuSwitchAction) -> Self
fn from(value: RichMenuSwitchAction) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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