#[non_exhaustive]pub struct StartThreadFromMessage {
pub name: CompactString,
pub auto_archive_duration: Option<AutoArchiveDuration>,
pub rate_limit_per_user: Option<u16>,
}Expand description
The body of Start Thread from Message.
discord.js counterpart: StartThreadOptions.
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.name: CompactStringThe name (1-100 characters).
auto_archive_duration: Option<AutoArchiveDuration>The inactivity after which the thread is archived.
rate_limit_per_user: Option<u16>Slowmode: seconds a member must wait between messages (0-21600).
Implementations§
Source§impl StartThreadFromMessage
impl StartThreadFromMessage
Sourcepub fn new(name: impl Into<CompactString>) -> Self
pub fn new(name: impl Into<CompactString>) -> Self
A thread named name.
discord.js counterpart: StartThreadOptions.
Trait Implementations§
Source§impl Clone for StartThreadFromMessage
impl Clone for StartThreadFromMessage
Source§impl Debug for StartThreadFromMessage
impl Debug for StartThreadFromMessage
impl Eq for StartThreadFromMessage
Source§impl Hash for StartThreadFromMessage
impl Hash for StartThreadFromMessage
Source§impl PartialEq for StartThreadFromMessage
impl PartialEq for StartThreadFromMessage
Source§impl Serialize for StartThreadFromMessage
impl Serialize for StartThreadFromMessage
impl StructuralPartialEq for StartThreadFromMessage
Auto Trait Implementations§
impl Forget for StartThreadFromMessage
impl Freeze for StartThreadFromMessage
impl Move for StartThreadFromMessage
impl RefUnwindSafe for StartThreadFromMessage
impl Send for StartThreadFromMessage
impl Sync for StartThreadFromMessage
impl Unpin for StartThreadFromMessage
impl UnsafeUnpin for StartThreadFromMessage
impl UnwindSafe for StartThreadFromMessage
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