pub struct ApsDeser<'a> {
pub badge: Option<u32>,
pub sound: Option<&'a str>,
pub content_available: Option<u8>,
pub category: Option<&'a str>,
pub mutable_content: Option<u8>,
pub url_args: Option<Vec<String>>,
}
Expand description
a2 does not allow for Deserialization of the APS structure. this is copied from that library
Fields§
§badge: Option<u32>
A number shown on top of the app icon.
sound: Option<&'a str>
The name of the sound file to play when user receives the notification.
content_available: Option<u8>
Set to one for silent notifications.
category: Option<&'a str>
When a notification includes the category key, the system displays the actions for that category as buttons in the banner or alert interface.
mutable_content: Option<u8>
If set to one, the app can change the notification content before displaying it to the user.
url_args: Option<Vec<String>>
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for ApsDeser<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ApsDeser<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for ApsDeser<'a>
impl<'a> RefUnwindSafe for ApsDeser<'a>
impl<'a> Send for ApsDeser<'a>
impl<'a> Sync for ApsDeser<'a>
impl<'a> Unpin for ApsDeser<'a>
impl<'a> UnwindSafe for ApsDeser<'a>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more