Struct ntfy_types::NtfyResponse
source · [−]pub struct NtfyResponse {
pub id: String,
pub time: u64,
pub event: String,
pub topic: String,
pub message: Option<String>,
pub title: Option<String>,
pub tags: Option<Vec<String>>,
pub priority: Option<NtfyPriority>,
pub click: Option<String>,
pub action: Option<Vec<NtfyAction>>,
pub attachment: Option<NtfyAttachment>,
}Fields
id: Stringtime: u64event: Stringtopic: Stringmessage: Option<String>title: Option<String>priority: Option<NtfyPriority>click: Option<String>action: Option<Vec<NtfyAction>>attachment: Option<NtfyAttachment>Trait Implementations
sourceimpl Clone for NtfyResponse
impl Clone for NtfyResponse
sourcefn clone(&self) -> NtfyResponse
fn clone(&self) -> NtfyResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for NtfyResponse
impl Debug for NtfyResponse
sourceimpl Default for NtfyResponse
impl Default for NtfyResponse
sourcefn default() -> NtfyResponse
fn default() -> NtfyResponse
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for NtfyResponse
impl<'de> Deserialize<'de> for NtfyResponse
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
sourceimpl Serialize for NtfyResponse
impl Serialize for NtfyResponse
Auto Trait Implementations
impl RefUnwindSafe for NtfyResponse
impl Send for NtfyResponse
impl Sync for NtfyResponse
impl Unpin for NtfyResponse
impl UnwindSafe for NtfyResponse
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