pub struct CreateForumTopicBuilder { /* private fields */ }Expand description
Builder for the CreateForumTopic structure
Implementations§
Source§impl CreateForumTopicBuilder
impl CreateForumTopicBuilder
Sourcepub fn new(chat_id: ChatId, name: String) -> Self
pub fn new(chat_id: ChatId, name: String) -> Self
Instantiate the builder with the fields chat_id, name, icon_color, icon_custom_emoji_id
Sourcepub fn icon_color(self, val: i64) -> Self
pub fn icon_color(self, val: i64) -> Self
Set the field icon_color to the given value
Sourcepub fn icon_custom_emoji_id(self, val: String) -> Self
pub fn icon_custom_emoji_id(self, val: String) -> Self
Set the field icon_custom_emoji_id to the given value
Trait Implementations§
Source§impl Builder for CreateForumTopicBuilder
impl Builder for CreateForumTopicBuilder
Source§type Value = CreateForumTopic
type Value = CreateForumTopic
Type to be built
Auto Trait Implementations§
impl Freeze for CreateForumTopicBuilder
impl RefUnwindSafe for CreateForumTopicBuilder
impl Send for CreateForumTopicBuilder
impl Sync for CreateForumTopicBuilder
impl Unpin for CreateForumTopicBuilder
impl UnwindSafe for CreateForumTopicBuilder
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