pub struct AllowedMentions {
pub parse: Vec<AllowedMentionTypes>,
pub roles: Vec<Snowflake>,
pub users: Vec<Snowflake>,
pub replied_user: bool,
}Expand description
Fields§
§parse: Vec<AllowedMentionTypes>An array of allowed mention types to parse from the content.
roles: Vec<Snowflake>Array of role_ids to mention (Max size of 100)
users: Vec<Snowflake>Array of user_ids to mention (Max size of 100)
replied_user: boolFor replies, whether to mention the author of the message being replied to (default false)
Trait Implementations§
Source§impl Clone for AllowedMentions
impl Clone for AllowedMentions
Source§impl Debug for AllowedMentions
impl Debug for AllowedMentions
Source§impl<'de> Deserialize<'de> for AllowedMentions
impl<'de> Deserialize<'de> for AllowedMentions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AllowedMentions
impl RefUnwindSafe for AllowedMentions
impl Send for AllowedMentions
impl Sync for AllowedMentions
impl Unpin for AllowedMentions
impl UnsafeUnpin for AllowedMentions
impl UnwindSafe for AllowedMentions
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