Struct twilight_model::channel::message::allowed_mentions::AllowedMentions
source · [−]pub struct AllowedMentions {
pub parse: Vec<ParseTypes>,
pub users: Vec<Id<UserMarker>>,
pub roles: Vec<Id<RoleMarker>>,
pub replied_user: bool,
}
Expand description
Allowed mentions structure.
Fields
parse: Vec<ParseTypes>
users: Vec<Id<UserMarker>>
roles: Vec<Id<RoleMarker>>
replied_user: bool
Implementations
sourceimpl AllowedMentions
impl AllowedMentions
pub const fn builder() -> AllowedMentionsBuilder
Trait Implementations
sourceimpl Clone for AllowedMentions
impl Clone for AllowedMentions
sourcefn clone(&self) -> AllowedMentions
fn clone(&self) -> AllowedMentions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AllowedMentions
impl Debug for AllowedMentions
sourceimpl Default for AllowedMentions
impl Default for AllowedMentions
sourcefn default() -> AllowedMentions
fn default() -> AllowedMentions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AllowedMentions
impl<'de> Deserialize<'de> for AllowedMentions
sourcefn 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
sourceimpl Hash for AllowedMentions
impl Hash for AllowedMentions
sourceimpl PartialEq<AllowedMentions> for AllowedMentions
impl PartialEq<AllowedMentions> for AllowedMentions
sourcefn eq(&self, other: &AllowedMentions) -> bool
fn eq(&self, other: &AllowedMentions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AllowedMentions) -> bool
fn ne(&self, other: &AllowedMentions) -> bool
This method tests for !=
.
sourceimpl Serialize for AllowedMentions
impl Serialize for AllowedMentions
impl Eq for AllowedMentions
impl StructuralEq for AllowedMentions
impl StructuralPartialEq for AllowedMentions
Auto Trait Implementations
impl RefUnwindSafe for AllowedMentions
impl Send for AllowedMentions
impl Sync for AllowedMentions
impl Unpin for AllowedMentions
impl UnwindSafe for AllowedMentions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more