pub struct MessageLinkIDs {
pub guild_id: GuildId,
pub channel_id: ChannelId,
pub message_id: MessageId,
}Expand description
Parsed IDs from a Discord message link.
Fields§
§guild_id: GuildIdThe guild ID from the message link.
channel_id: ChannelIdThe channel ID from the message link.
message_id: MessageIdThe message ID from the message link.
Implementations§
Source§impl MessageLinkIDs
impl MessageLinkIDs
Sourcepub fn parse(text: &str) -> Option<MessageLinkIDs>
pub fn parse(text: &str) -> Option<MessageLinkIDs>
Parses a Discord message link from text.
Returns Some(MessageLinkIDs) if a valid message link is found,
otherwise returns None.
Trait Implementations§
Source§impl Debug for MessageLinkIDs
impl Debug for MessageLinkIDs
Source§impl<'de> Deserialize<'de> for MessageLinkIDs
impl<'de> Deserialize<'de> for MessageLinkIDs
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 MessageLinkIDs
impl RefUnwindSafe for MessageLinkIDs
impl Send for MessageLinkIDs
impl Sync for MessageLinkIDs
impl Unpin for MessageLinkIDs
impl UnwindSafe for MessageLinkIDs
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