pub struct InputChecklistTask {
pub id: Integer,
pub text: String,
pub parse_mode: Option<ParseMode>,
pub text_entities: Option<TextEntities>,
}Expand description
Describes a task to add to a checklist.
Fields§
§id: IntegerUnique identifier of the task.
Must be positive and unique among all task identifiers currently present in the checklist.
text: StringText of the task.
1-100 characters after entities parsing.
parse_mode: Option<ParseMode>Mode for parsing entities in the text.
text_entities: Option<TextEntities>List of special entities that appear in the text.
Can be specified instead of parse_mode.
Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.
Implementations§
Source§impl InputChecklistTask
impl InputChecklistTask
Sourcepub fn new<T>(id: Integer, text: T) -> Self
pub fn new<T>(id: Integer, text: T) -> Self
Creates a new InputChecklistTask.
§Arguments
id- Unique identifier of the task.text- Text of the task
Sourcepub fn with_parse_mode(self, value: ParseMode) -> Self
pub fn with_parse_mode(self, value: ParseMode) -> Self
Sourcepub fn with_text_entities<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = TextEntity>,
pub fn with_text_entities<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = TextEntity>,
Trait Implementations§
Source§impl Clone for InputChecklistTask
impl Clone for InputChecklistTask
Source§fn clone(&self) -> InputChecklistTask
fn clone(&self) -> InputChecklistTask
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 InputChecklistTask
impl Debug for InputChecklistTask
Source§impl<'de> Deserialize<'de> for InputChecklistTask
impl<'de> Deserialize<'de> for InputChecklistTask
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 InputChecklistTask
impl PartialEq for InputChecklistTask
Source§impl PartialOrd for InputChecklistTask
impl PartialOrd for InputChecklistTask
Source§impl Serialize for InputChecklistTask
impl Serialize for InputChecklistTask
impl StructuralPartialEq for InputChecklistTask
Auto Trait Implementations§
impl Freeze for InputChecklistTask
impl RefUnwindSafe for InputChecklistTask
impl Send for InputChecklistTask
impl Sync for InputChecklistTask
impl Unpin for InputChecklistTask
impl UnwindSafe for InputChecklistTask
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