#[non_exhaustive]pub struct ForumThread {
pub channel: Channel,
pub message: Option<Message>,
}Expand description
The response of Start Thread in Forum or Media Channel: the created post and its first message (D-115).
discord.js counterpart: RESTPostAPIChannelThreadsResult (discord-api-types), with its first message.
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.channel: ChannelThe thread.
message: Option<Message>The thread’s first message.
Trait Implementations§
Source§impl Clone for ForumThread
impl Clone for ForumThread
Source§impl Debug for ForumThread
impl Debug for ForumThread
Source§impl<'de> Deserialize<'de> for ForumThread
impl<'de> Deserialize<'de> for ForumThread
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ForumThread
impl PartialEq for ForumThread
impl StructuralPartialEq for ForumThread
Auto Trait Implementations§
impl Freeze for ForumThread
impl RefUnwindSafe for ForumThread
impl Send for ForumThread
impl Sync for ForumThread
impl Unpin for ForumThread
impl UnsafeUnpin for ForumThread
impl UnwindSafe for ForumThread
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