pub struct NotificationSound {
pub id: i64,
pub duration: i32,
pub date: i32,
pub title: String,
pub data: String,
pub sound: File,
}
Expand description
Describes a notification sound in MP3 format
Fields§
§id: i64
Unique identifier of the notification sound
duration: i32
Duration of the sound, in seconds
date: i32
Point in time (Unix timestamp) when the sound was created
title: String
Title of the notification sound
data: String
Arbitrary data, defined while the sound was uploaded
sound: File
File containing the sound
Trait Implementations§
Source§impl Clone for NotificationSound
impl Clone for NotificationSound
Source§fn clone(&self) -> NotificationSound
fn clone(&self) -> NotificationSound
Returns a duplicate of the value. Read more
1.0.0 · 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 NotificationSound
impl Debug for NotificationSound
Source§impl Default for NotificationSound
impl Default for NotificationSound
Source§fn default() -> NotificationSound
fn default() -> NotificationSound
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationSound
impl<'de> Deserialize<'de> for NotificationSound
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 NotificationSound
impl PartialEq for NotificationSound
Source§impl Serialize for NotificationSound
impl Serialize for NotificationSound
impl StructuralPartialEq for NotificationSound
Auto Trait Implementations§
impl Freeze for NotificationSound
impl RefUnwindSafe for NotificationSound
impl Send for NotificationSound
impl Sync for NotificationSound
impl Unpin for NotificationSound
impl UnwindSafe for NotificationSound
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