pub struct StartThreadBuilder<'a> { /* private fields */ }Expand description
Builder for starting a Thread.
Implementations§
Source§impl<'a> StartThreadBuilder<'a>
impl<'a> StartThreadBuilder<'a>
Sourcepub fn new(name: impl Into<TitanString<'a>>) -> Self
pub fn new(name: impl Into<TitanString<'a>>) -> Self
Create a new StartThreadBuilder.
Sourcepub fn auto_archive_duration(self, duration: u32) -> Self
pub fn auto_archive_duration(self, duration: u32) -> Self
Set auto archive duration (60, 1440, 4320, 10080).
Sourcepub fn rate_limit_per_user(self, limit: u32) -> Self
pub fn rate_limit_per_user(self, limit: u32) -> Self
Set rate limit per user.
Sourcepub fn build(self) -> StartThread<'a>
pub fn build(self) -> StartThread<'a>
Build the StartThread payload.
Trait Implementations§
Source§impl<'a> Clone for StartThreadBuilder<'a>
impl<'a> Clone for StartThreadBuilder<'a>
Source§fn clone(&self) -> StartThreadBuilder<'a>
fn clone(&self) -> StartThreadBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for StartThreadBuilder<'a>
impl<'a> RefUnwindSafe for StartThreadBuilder<'a>
impl<'a> Send for StartThreadBuilder<'a>
impl<'a> Sync for StartThreadBuilder<'a>
impl<'a> Unpin for StartThreadBuilder<'a>
impl<'a> UnwindSafe for StartThreadBuilder<'a>
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