#[non_exhaustive]pub struct PresenceStatusPatch<'a> {
pub presence: Option<Presence>,
pub status_text: Patch<&'a str>,
pub status_emoji: Patch<&'a str>,
pub expires_at: Patch<&'a UTCDate>,
pub receipt_sharing: Option<bool>,
}Expand description
Patch parameters for PresenceStatus/set update.
All fields are optional. A field that is Patch::Keep (default) is omitted
from the patch, leaving the server value unchanged. Use Patch::Set(v) to
set a value and Patch::Clear to null-clear a nullable field.
Use ..Default::default() to fill in unused fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.presence: Option<Presence>New presence state. None = no change.
status_text: Patch<&'a str>Free-text status message. Patch::Clear clears; Patch::Set sets.
status_emoji: Patch<&'a str>Status emoji. Patch::Clear clears; Patch::Set sets.
expires_at: Patch<&'a UTCDate>Set or clear the auto-clear deadline. Patch::Clear removes any deadline.
receipt_sharing: Option<bool>Whether read receipts are shared with peers. None = no change.
Trait Implementations§
Source§impl<'a> Debug for PresenceStatusPatch<'a>
impl<'a> Debug for PresenceStatusPatch<'a>
Source§impl<'a> Default for PresenceStatusPatch<'a>
impl<'a> Default for PresenceStatusPatch<'a>
Source§fn default() -> PresenceStatusPatch<'a>
fn default() -> PresenceStatusPatch<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PresenceStatusPatch<'a>
impl<'a> RefUnwindSafe for PresenceStatusPatch<'a>
impl<'a> Send for PresenceStatusPatch<'a>
impl<'a> Sync for PresenceStatusPatch<'a>
impl<'a> Unpin for PresenceStatusPatch<'a>
impl<'a> UnsafeUnpin for PresenceStatusPatch<'a>
impl<'a> UnwindSafe for PresenceStatusPatch<'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