pub struct InputChecklistBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> InputChecklistBuilder<S>
impl<S: State> InputChecklistBuilder<S>
Sourcepub fn build(self) -> InputChecklistwhere
S: IsComplete,
pub fn build(self) -> InputChecklistwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn title(
self,
value: impl Into<String>,
) -> InputChecklistBuilder<SetTitle<S>>where
S::Title: IsUnset,
pub fn title(
self,
value: impl Into<String>,
) -> InputChecklistBuilder<SetTitle<S>>where
S::Title: IsUnset,
Required.
Sourcepub fn parse_mode(
self,
value: impl Into<String>,
) -> InputChecklistBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
pub fn parse_mode(
self,
value: impl Into<String>,
) -> InputChecklistBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
Sourcepub fn maybe_parse_mode(
self,
value: Option<impl Into<String>>,
) -> InputChecklistBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
pub fn maybe_parse_mode(
self,
value: Option<impl Into<String>>,
) -> InputChecklistBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
Sourcepub fn title_entities(
self,
value: Vec<MessageEntity>,
) -> InputChecklistBuilder<SetTitleEntities<S>>where
S::TitleEntities: IsUnset,
pub fn title_entities(
self,
value: Vec<MessageEntity>,
) -> InputChecklistBuilder<SetTitleEntities<S>>where
S::TitleEntities: IsUnset,
Sourcepub fn maybe_title_entities(
self,
value: Option<Vec<MessageEntity>>,
) -> InputChecklistBuilder<SetTitleEntities<S>>where
S::TitleEntities: IsUnset,
pub fn maybe_title_entities(
self,
value: Option<Vec<MessageEntity>>,
) -> InputChecklistBuilder<SetTitleEntities<S>>where
S::TitleEntities: IsUnset,
Sourcepub fn tasks(
self,
value: Vec<InputChecklistTask>,
) -> InputChecklistBuilder<SetTasks<S>>where
S::Tasks: IsUnset,
pub fn tasks(
self,
value: Vec<InputChecklistTask>,
) -> InputChecklistBuilder<SetTasks<S>>where
S::Tasks: IsUnset,
Required.
Sourcepub fn others_can_add_tasks(
self,
value: bool,
) -> InputChecklistBuilder<SetOthersCanAddTasks<S>>where
S::OthersCanAddTasks: IsUnset,
pub fn others_can_add_tasks(
self,
value: bool,
) -> InputChecklistBuilder<SetOthersCanAddTasks<S>>where
S::OthersCanAddTasks: IsUnset,
Sourcepub fn maybe_others_can_add_tasks(
self,
value: Option<bool>,
) -> InputChecklistBuilder<SetOthersCanAddTasks<S>>where
S::OthersCanAddTasks: IsUnset,
pub fn maybe_others_can_add_tasks(
self,
value: Option<bool>,
) -> InputChecklistBuilder<SetOthersCanAddTasks<S>>where
S::OthersCanAddTasks: IsUnset,
Sourcepub fn others_can_mark_tasks_as_done(
self,
value: bool,
) -> InputChecklistBuilder<SetOthersCanMarkTasksAsDone<S>>where
S::OthersCanMarkTasksAsDone: IsUnset,
pub fn others_can_mark_tasks_as_done(
self,
value: bool,
) -> InputChecklistBuilder<SetOthersCanMarkTasksAsDone<S>>where
S::OthersCanMarkTasksAsDone: IsUnset,
Sourcepub fn maybe_others_can_mark_tasks_as_done(
self,
value: Option<bool>,
) -> InputChecklistBuilder<SetOthersCanMarkTasksAsDone<S>>where
S::OthersCanMarkTasksAsDone: IsUnset,
pub fn maybe_others_can_mark_tasks_as_done(
self,
value: Option<bool>,
) -> InputChecklistBuilder<SetOthersCanMarkTasksAsDone<S>>where
S::OthersCanMarkTasksAsDone: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for InputChecklistBuilder<S>
impl<S> RefUnwindSafe for InputChecklistBuilder<S>
impl<S> Send for InputChecklistBuilder<S>
impl<S> Sync for InputChecklistBuilder<S>
impl<S> Unpin for InputChecklistBuilder<S>
impl<S> UnsafeUnpin for InputChecklistBuilder<S>
impl<S> UnwindSafe for InputChecklistBuilder<S>
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