pub struct CreateForumTopic { /* private fields */ }Expand description
Builder for the createForumTopic method.
Implementations§
Source§impl CreateForumTopic
impl CreateForumTopic
Sourcepub fn icon_color(self, color: u32) -> Self
pub fn icon_color(self, color: u32) -> Self
Sets the colour of the topic icon. One of: 0x6FB9F0, 0xFFD67E,
0xCB86DB, 0x8EEE98, 0xFF93B2, 0xFB6F5F.
Sourcepub fn icon_custom_emoji_id(self, id: impl Into<String>) -> Self
pub fn icon_custom_emoji_id(self, id: impl Into<String>) -> Self
Sets a custom emoji as the topic icon. Pass an empty string to remove it.
Trait Implementations§
Source§impl IntoFuture for CreateForumTopic
impl IntoFuture for CreateForumTopic
Source§type Output = Result<ForumTopic, Error>
type Output = Result<ForumTopic, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateForumTopic as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateForumTopic as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CreateForumTopic
impl !UnwindSafe for CreateForumTopic
impl Freeze for CreateForumTopic
impl Send for CreateForumTopic
impl Sync for CreateForumTopic
impl Unpin for CreateForumTopic
impl UnsafeUnpin for CreateForumTopic
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