pub struct NotificationInput {
pub base: BaseHookInput,
pub message: String,
pub title: Option<String>,
pub notification_type: String,
}Expand description
Input payload for Notification.
Fields§
§base: BaseHookInputShared hook context.
message: StringBody of the notification.
title: Option<String>Optional title; absent when the CLI omits it.
notification_type: StringNotification classification (e.g. "permission_request").
Trait Implementations§
Source§impl Clone for NotificationInput
impl Clone for NotificationInput
Source§fn clone(&self) -> NotificationInput
fn clone(&self) -> NotificationInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotificationInput
impl Debug for NotificationInput
Source§impl<'de> Deserialize<'de> for NotificationInput
impl<'de> Deserialize<'de> for NotificationInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NotificationInput
impl Serialize for NotificationInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for NotificationInput
impl RefUnwindSafe for NotificationInput
impl Send for NotificationInput
impl Sync for NotificationInput
impl Unpin for NotificationInput
impl UnsafeUnpin for NotificationInput
impl UnwindSafe for NotificationInput
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