pub enum Announcement<'a> {
NameChange(&'a str),
PhotoChange,
FullyUnsent,
Unknown(&'a i32),
}Expand description
Announcement Message Types
Announcements are messages sent to a thread for actions that are not balloons, i.e. updating the name of the group or changing the group photo
Variants§
NameChange(&'a str)
Someone changed the name of the group
PhotoChange
Someone updated the group photo
FullyUnsent
All parts of the message were unsent
Unknown(&'a i32)
Types that may occur in the future, i.e. someone leaving or joining a group
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Announcement<'a>
impl<'a> RefUnwindSafe for Announcement<'a>
impl<'a> Send for Announcement<'a>
impl<'a> Sync for Announcement<'a>
impl<'a> Unpin for Announcement<'a>
impl<'a> UnwindSafe for Announcement<'a>
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