pub struct LocKeys {
pub title_loc_key: Option<String>,
pub title_loc_args: Vec<String>,
pub body_loc_key: Option<String>,
pub body_loc_args: Vec<String>,
}Expand description
Native localisation keys. The strings are looked up in the app’s own catalogue by the operating system, so a notification can be localised without the server knowing the device’s language. Reserved here and mapped by the adapters; rendering is the i18n child’s job.
Fields§
§title_loc_key: Option<String>Key for the title (aps.alert.title-loc-key).
title_loc_args: Vec<String>Substitutions for the title key.
body_loc_key: Option<String>Key for the body (aps.alert.loc-key).
body_loc_args: Vec<String>Substitutions for the body key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LocKeys
impl<'de> Deserialize<'de> for LocKeys
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
impl Eq for LocKeys
impl StructuralPartialEq for LocKeys
Auto Trait Implementations§
impl Freeze for LocKeys
impl RefUnwindSafe for LocKeys
impl Send for LocKeys
impl Sync for LocKeys
impl Unpin for LocKeys
impl UnsafeUnpin for LocKeys
impl UnwindSafe for LocKeys
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.