Struct ntfy_types::NtfyAttachment
source · [−]pub struct NtfyAttachment {
pub name: String,
pub url: String,
pub type: Option<String>,
pub size: Option<u64>,
pub expires: Option<u64>,
}Fields
name: Stringurl: Stringtype: Option<String>size: Option<u64>expires: Option<u64>Trait Implementations
sourceimpl Clone for NtfyAttachment
impl Clone for NtfyAttachment
sourcefn clone(&self) -> NtfyAttachment
fn clone(&self) -> NtfyAttachment
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 NtfyAttachment
impl Debug for NtfyAttachment
sourceimpl Default for NtfyAttachment
impl Default for NtfyAttachment
sourcefn default() -> NtfyAttachment
fn default() -> NtfyAttachment
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for NtfyAttachment
impl<'de> Deserialize<'de> for NtfyAttachment
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 NtfyAttachment
impl Serialize for NtfyAttachment
Auto Trait Implementations
impl RefUnwindSafe for NtfyAttachment
impl Send for NtfyAttachment
impl Sync for NtfyAttachment
impl Unpin for NtfyAttachment
impl UnwindSafe for NtfyAttachment
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