#[non_exhaustive]pub struct ChatContactPatch<'a> {
pub blocked: Option<bool>,
pub display_name: Patch<&'a str>,
}Expand description
Patch parameters for ChatContact/set update.
All fields are optional; absent fields are omitted from the patch. For the
nullable display_name field, use Patch::Set(s) to set and Patch::Clear
to clear. 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.blocked: Option<bool>Set or unset the blocked flag on this contact. None = no change.
display_name: Patch<&'a str>Patch::Clear clears displayName; Patch::Set(s) sets it.
Trait Implementations§
Source§impl<'a> Debug for ChatContactPatch<'a>
impl<'a> Debug for ChatContactPatch<'a>
Source§impl<'a> Default for ChatContactPatch<'a>
impl<'a> Default for ChatContactPatch<'a>
Source§fn default() -> ChatContactPatch<'a>
fn default() -> ChatContactPatch<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ChatContactPatch<'a>
impl<'a> RefUnwindSafe for ChatContactPatch<'a>
impl<'a> Send for ChatContactPatch<'a>
impl<'a> Sync for ChatContactPatch<'a>
impl<'a> Unpin for ChatContactPatch<'a>
impl<'a> UnsafeUnpin for ChatContactPatch<'a>
impl<'a> UnwindSafe for ChatContactPatch<'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