pub struct CreateForumThreadBuilder {
type_: Option<ForumThreadType>,
id: Option<Uuid>,
/* private fields */
}
Expand description
Builder for CreateForumThread
.
Fields§
§type_: Option<ForumThreadType>
§id: Option<Uuid>
Implementations§
Source§impl CreateForumThreadBuilder
impl CreateForumThreadBuilder
pub fn type_<VALUE: Into<ForumThreadType>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<CreateForumThread, BuilderError>
pub fn build(&self) -> Result<CreateForumThread, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl CreateForumThreadBuilder
impl CreateForumThreadBuilder
pub async fn send(&self) -> Result<Limited<ForumThreadResponseData>>
Trait Implementations§
Source§impl Clone for CreateForumThreadBuilder
impl Clone for CreateForumThreadBuilder
Source§fn clone(&self) -> CreateForumThreadBuilder
fn clone(&self) -> CreateForumThreadBuilder
Returns a copy 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 Freeze for CreateForumThreadBuilder
impl !RefUnwindSafe for CreateForumThreadBuilder
impl !Send for CreateForumThreadBuilder
impl !Sync for CreateForumThreadBuilder
impl Unpin for CreateForumThreadBuilder
impl !UnwindSafe for CreateForumThreadBuilder
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