pub struct CreateForumTopicBuilder<'a> { /* private fields */ }Expand description
Builder for the [createForumTopic] API method.
Implementations§
Source§impl<'a> CreateForumTopicBuilder<'a>
impl<'a> CreateForumTopicBuilder<'a>
Sourcepub fn icon_color(self, val: i64) -> Self
pub fn icon_color(self, val: i64) -> Self
Sets the icon_color parameter.
Sourcepub fn icon_custom_emoji_id(self, val: impl Into<String>) -> Self
pub fn icon_custom_emoji_id(self, val: impl Into<String>) -> Self
Sets the icon_custom_emoji_id parameter.
Sourcepub async fn send(self) -> Result<ForumTopic>
pub async fn send(self) -> Result<ForumTopic>
Sends the request to the Telegram Bot API.
Trait Implementations§
Source§impl<'a> IntoFuture for CreateForumTopicBuilder<'a>
impl<'a> IntoFuture for CreateForumTopicBuilder<'a>
Source§type Output = Result<ForumTopic, TelegramError>
type Output = Result<ForumTopic, TelegramError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateForumTopicBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateForumTopicBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
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<'a> Freeze for CreateForumTopicBuilder<'a>
impl<'a> !RefUnwindSafe for CreateForumTopicBuilder<'a>
impl<'a> Send for CreateForumTopicBuilder<'a>
impl<'a> Sync for CreateForumTopicBuilder<'a>
impl<'a> Unpin for CreateForumTopicBuilder<'a>
impl<'a> UnsafeUnpin for CreateForumTopicBuilder<'a>
impl<'a> !UnwindSafe for CreateForumTopicBuilder<'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