Struct Mentions
pub struct Mentions {
pub everyone: bool,
pub members: Vec<MemberId>,
pub roles: Vec<RoleId>,
}Expand description
Who a message mentions, as the protocol has it (Message::mentions).
mentions: {everyone, members, roles} (§8.5).
Fields§
§everyone: bool@everyone was mentioned.
members: Vec<MemberId>Mentioned members, ≤ 50.
roles: Vec<RoleId>Mentioned roles, ≤ 20.
Trait Implementations§
§impl<'de> Deserialize<'de> for Mentions
impl<'de> Deserialize<'de> for Mentions
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Mentions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Mentions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Mentions
§impl Serialize for Mentions
impl Serialize for Mentions
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Mentions
Auto Trait Implementations§
impl Freeze for Mentions
impl RefUnwindSafe for Mentions
impl Send for Mentions
impl Sync for Mentions
impl Unpin for Mentions
impl UnsafeUnpin for Mentions
impl UnwindSafe for Mentions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more