pub struct JsonNotificationFormat;Expand description
JSON notification format (default)
Implementations§
Trait Implementations§
Source§impl Default for JsonNotificationFormat
impl Default for JsonNotificationFormat
Source§impl NotificationFormat for JsonNotificationFormat
impl NotificationFormat for JsonNotificationFormat
Source§fn serialize(
&self,
task: &TaskNotification,
) -> Result<String, NotificationError>
fn serialize( &self, task: &TaskNotification, ) -> Result<String, NotificationError>
Serialize a task notification
Source§fn deserialize(&self, data: &str) -> Result<TaskNotification, NotificationError>
fn deserialize(&self, data: &str) -> Result<TaskNotification, NotificationError>
Deserialize a task notification
Auto Trait Implementations§
impl Freeze for JsonNotificationFormat
impl RefUnwindSafe for JsonNotificationFormat
impl Send for JsonNotificationFormat
impl Sync for JsonNotificationFormat
impl Unpin for JsonNotificationFormat
impl UnsafeUnpin for JsonNotificationFormat
impl UnwindSafe for JsonNotificationFormat
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