Struct ntfy_types::NtfyMsg
source · [−]pub struct NtfyMsg {
pub topic: String,
pub message: Option<String>,
pub title: Option<String>,
pub tags: Option<Vec<String>>,
pub priority: Option<NtfyPriority>,
pub attach: Option<String>,
pub filename: Option<String>,
pub click: Option<String>,
pub action: Option<Vec<NtfyAction>>,
}Fields
topic: Stringmessage: Option<String>title: Option<String>priority: Option<NtfyPriority>attach: Option<String>filename: Option<String>click: Option<String>action: Option<Vec<NtfyAction>>Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for NtfyMsg
impl<'de> Deserialize<'de> for NtfyMsg
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for NtfyMsg
impl Send for NtfyMsg
impl Sync for NtfyMsg
impl Unpin for NtfyMsg
impl UnwindSafe for NtfyMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more