pub struct PushNotification {Show 22 fields
pub ack_id: Option<String>,
pub platform: Option<String>,
pub server_id: Option<String>,
pub device_id: Option<String>,
pub post_id: Option<String>,
pub category: Option<String>,
pub sound: Option<String>,
pub message: Option<String>,
pub badge: Option<f32>,
pub cont_ava: Option<f32>,
pub team_id: Option<String>,
pub channel_id: Option<String>,
pub root_id: Option<String>,
pub channel_name: Option<String>,
pub type: Option<String>,
pub sender_id: Option<String>,
pub sender_name: Option<String>,
pub override_username: Option<String>,
pub override_icon_url: Option<String>,
pub from_webhook: Option<String>,
pub version: Option<String>,
pub is_id_loaded: Option<bool>,
}Fields§
§ack_id: Option<String>§platform: Option<String>§server_id: Option<String>§device_id: Option<String>§post_id: Option<String>§category: Option<String>§sound: Option<String>§message: Option<String>§badge: Option<f32>§cont_ava: Option<f32>§team_id: Option<String>§channel_id: Option<String>§root_id: Option<String>§channel_name: Option<String>§type: Option<String>§sender_id: Option<String>§sender_name: Option<String>§override_username: Option<String>§override_icon_url: Option<String>§from_webhook: Option<String>§version: Option<String>§is_id_loaded: Option<bool>Implementations§
Source§impl PushNotification
impl PushNotification
pub fn new() -> PushNotification
Trait Implementations§
Source§impl Clone for PushNotification
impl Clone for PushNotification
Source§fn clone(&self) -> PushNotification
fn clone(&self) -> PushNotification
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 PushNotification
impl Debug for PushNotification
Source§impl Default for PushNotification
impl Default for PushNotification
Source§fn default() -> PushNotification
fn default() -> PushNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushNotification
impl<'de> Deserialize<'de> for PushNotification
Source§fn 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
Source§impl PartialEq for PushNotification
impl PartialEq for PushNotification
Source§impl Serialize for PushNotification
impl Serialize for PushNotification
impl StructuralPartialEq for PushNotification
Auto Trait Implementations§
impl Freeze for PushNotification
impl RefUnwindSafe for PushNotification
impl Send for PushNotification
impl Sync for PushNotification
impl Unpin for PushNotification
impl UnsafeUnpin for PushNotification
impl UnwindSafe for PushNotification
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