pub struct InputChecklist {
pub title: String,
pub parse_mode: Option<ParseMode>,
pub title_entities: Option<Vec<MessageEntity>>,
pub tasks: Vec<InputChecklistTask>,
pub others_can_add_tasks: Option<bool>,
pub others_can_mark_tasks_as_done: Option<bool>,
}Expand description
A checklist to send or create.
Fields§
§title: StringTitle of the checklist (1–255 characters after entities parsing).
parse_mode: Option<ParseMode>Parse mode for entities in the title.
title_entities: Option<Vec<MessageEntity>>Special entities in the title; alternative to parse_mode.
tasks: Vec<InputChecklistTask>List of 1–30 tasks in the checklist.
others_can_add_tasks: Option<bool>Pass true if other users can add tasks to the checklist.
others_can_mark_tasks_as_done: Option<bool>Pass true if other users can mark tasks as done or not done.
Trait Implementations§
Source§impl Clone for InputChecklist
impl Clone for InputChecklist
Source§fn clone(&self) -> InputChecklist
fn clone(&self) -> InputChecklist
Returns a duplicate 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 moreSource§impl Debug for InputChecklist
impl Debug for InputChecklist
Source§impl<'de> Deserialize<'de> for InputChecklist
impl<'de> Deserialize<'de> for InputChecklist
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputChecklist
impl RefUnwindSafe for InputChecklist
impl Send for InputChecklist
impl Sync for InputChecklist
impl Unpin for InputChecklist
impl UnsafeUnpin for InputChecklist
impl UnwindSafe for InputChecklist
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