#[non_exhaustive]pub struct SenderIgnoredErrorData {
pub sender: Option<OwnedUserId>,
}Available on crate features
api and unstable-msc4406 only.Expand description
Data for the M_SENDER_IGNORED ErrorKind.
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.sender: Option<OwnedUserId>The user who sent the ignored event.
Implementations§
Source§impl SenderIgnoredErrorData
impl SenderIgnoredErrorData
Sourcepub fn with_sender(sender: OwnedUserId) -> Self
pub fn with_sender(sender: OwnedUserId) -> Self
Construct a new SenderIgnoredErrorData with the given sender user.
Trait Implementations§
Source§impl Clone for SenderIgnoredErrorData
impl Clone for SenderIgnoredErrorData
Source§fn clone(&self) -> SenderIgnoredErrorData
fn clone(&self) -> SenderIgnoredErrorData
Returns a duplicate of the value. Read more
1.0.0 · 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 SenderIgnoredErrorData
impl Debug for SenderIgnoredErrorData
Source§impl Default for SenderIgnoredErrorData
impl Default for SenderIgnoredErrorData
Source§fn default() -> SenderIgnoredErrorData
fn default() -> SenderIgnoredErrorData
Returns the “default value” for a type. Read more
Source§impl PartialEq for SenderIgnoredErrorData
impl PartialEq for SenderIgnoredErrorData
impl Eq for SenderIgnoredErrorData
impl StructuralPartialEq for SenderIgnoredErrorData
Auto Trait Implementations§
impl Freeze for SenderIgnoredErrorData
impl RefUnwindSafe for SenderIgnoredErrorData
impl Send for SenderIgnoredErrorData
impl Sync for SenderIgnoredErrorData
impl Unpin for SenderIgnoredErrorData
impl UnsafeUnpin for SenderIgnoredErrorData
impl UnwindSafe for SenderIgnoredErrorData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.