#[non_exhaustive]pub enum PresentationStyle {
Standard,
BigText(BigTextStyle),
Progress(ProgressStyle),
Timer(TimerStyle),
Metric(MetricStyle),
}Expand description
Android’s notification styles, for the AndroidContent of a snapshot. A TimerStyle takes liveupdate’s
Timer, which is liveactivity::liveupdate::Timer.
One Android system presentation style.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Standard
Android’s standard notification template.
BigText(BigTextStyle)
Expanded long text.
Progress(ProgressStyle)
Rich progress track.
Timer(TimerStyle)
Up or down chronometer.
Metric(MetricStyle)
Up to three live metrics.
Trait Implementations§
Source§impl Clone for PresentationStyle
impl Clone for PresentationStyle
Source§fn clone(&self) -> PresentationStyle
fn clone(&self) -> PresentationStyle
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 PresentationStyle
impl Debug for PresentationStyle
Source§impl<'de> Deserialize<'de> for PresentationStyle
impl<'de> Deserialize<'de> for PresentationStyle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PresentationStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PresentationStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PresentationStyle
impl PartialEq for PresentationStyle
Source§impl Serialize for PresentationStyle
impl Serialize for PresentationStyle
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PresentationStyle
Auto Trait Implementations§
impl Forget for PresentationStyle
impl Freeze for PresentationStylewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ProgressSegment>: Freeze,
PhantomData<ProgressPoint>: Freeze,
PhantomData<Metric>: Freeze,
impl Move for PresentationStyle
impl RefUnwindSafe for PresentationStyle
impl Send for PresentationStylewhere
RawVecInner: Send,
impl Sync for PresentationStylewhere
RawVecInner: Sync,
impl Unpin for PresentationStyle
impl UnsafeUnpin for PresentationStylewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ProgressSegment>: UnsafeUnpin,
PhantomData<ProgressPoint>: UnsafeUnpin,
PhantomData<Metric>: UnsafeUnpin,
impl UnwindSafe for PresentationStylewhere
RawVecInner: UnwindSafe,
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