pub struct InputChecklist {
pub title: String,
pub tasks: Vec<InputChecklistTask>,
pub parse_mode: Option<String>,
pub title_entities: Option<Vec<MessageEntity>>,
pub others_can_add_tasks: Option<bool>,
pub others_can_mark_tasks_as_done: Option<bool>,
pub extra: BTreeMap<String, Value>,
}Expand description
Describes a checklist to create.
Fields§
§title: StringTitle of the checklist; 1-255 characters after entities parsing
tasks: Vec<InputChecklistTask>List of 1-30 tasks in the checklist
parse_mode: Option<String>Mode for parsing entities in the title. See formatting options for more details.
title_entities: Option<Vec<MessageEntity>>List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, custom_emoji, and date_time entities are allowed.
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 in the checklist
extra: BTreeMap<String, Value>Implementations§
Source§impl InputChecklist
impl InputChecklist
pub fn new(title: impl Into<String>, tasks: Vec<InputChecklistTask>) -> Self
pub fn parse_mode(self, value: impl Into<String>) -> Self
pub fn title_entities(self, value: Vec<MessageEntity>) -> Self
pub fn others_can_add_tasks(self, value: bool) -> Self
pub fn others_can_mark_tasks_as_done(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for InputChecklist
impl Clone for InputChecklist
Source§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
Source§impl PartialEq for InputChecklist
impl PartialEq for InputChecklist
Source§impl Serialize for InputChecklist
impl Serialize for InputChecklist
impl StructuralPartialEq for InputChecklist
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