pub struct LiveActivityContent { /* private fields */ }Expand description
Declarative content payload for iOS Dynamic Island, Live Activities, and cross-platform live status pills.
Implementations§
Source§impl LiveActivityContent
Safe optional accessors for LiveActivityContent.
impl LiveActivityContent
Safe optional accessors for LiveActivityContent.
Source§impl LiveActivityContent
impl LiveActivityContent
pub fn get_title(&self) -> &String
pub fn get_mut_title(&mut self) -> &mut String
pub fn set_title(&mut self, val: String) -> &mut LiveActivityContent
pub fn get_subtitle(&self) -> &String
pub fn get_mut_subtitle(&mut self) -> &mut String
pub fn set_subtitle(&mut self, val: String) -> &mut LiveActivityContent
pub fn get_compact_leading(&self) -> &String
pub fn get_mut_compact_leading(&mut self) -> &mut String
pub fn set_compact_leading(&mut self, val: String) -> &mut LiveActivityContent
pub fn get_compact_trailing(&self) -> &String
pub fn get_mut_compact_trailing(&mut self) -> &mut String
pub fn set_compact_trailing(&mut self, val: String) -> &mut LiveActivityContent
pub fn get_minimal_badge(&self) -> &String
pub fn get_mut_minimal_badge(&mut self) -> &mut String
pub fn set_minimal_badge(&mut self, val: String) -> &mut LiveActivityContent
pub fn get_mut_progress_percent(&mut self) -> &mut Option<u8>
pub fn set_progress_percent( &mut self, val: Option<u8>, ) -> &mut LiveActivityContent
pub fn get_accent_hex(&self) -> u32
pub fn get_mut_accent_hex(&mut self) -> &mut u32
pub fn set_accent_hex(&mut self, val: u32) -> &mut LiveActivityContent
Source§impl LiveActivityContent
impl LiveActivityContent
pub fn new(title: String, subtitle: String) -> LiveActivityContent
Trait Implementations§
Source§impl Clone for LiveActivityContent
impl Clone for LiveActivityContent
Source§fn clone(&self) -> LiveActivityContent
fn clone(&self) -> LiveActivityContent
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 LiveActivityContent
impl Debug for LiveActivityContent
impl Eq for LiveActivityContent
Source§impl PartialEq for LiveActivityContent
impl PartialEq for LiveActivityContent
impl StructuralPartialEq for LiveActivityContent
Auto Trait Implementations§
impl Forget for LiveActivityContent
impl Freeze for LiveActivityContent
impl Move for LiveActivityContent
impl RefUnwindSafe for LiveActivityContent
impl Send for LiveActivityContentwhere
RawVecInner: Send,
impl Sync for LiveActivityContentwhere
RawVecInner: Sync,
impl Unpin for LiveActivityContent
impl UnsafeUnpin for LiveActivityContent
impl UnwindSafe for LiveActivityContentwhere
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