pub struct ChecklistTask {
pub id: i64,
pub text: String,
pub text_entities: Option<Vec<MessageEntity>>,
pub completed_by_user: Option<User>,
pub completed_by_chat: Option<Box<Chat>>,
pub completion_date: Option<i64>,
pub extra: BTreeMap<String, Value>,
}Expand description
Describes a task in a checklist.
Fields§
§id: i64Unique identifier of the task
text: StringText of the task
text_entities: Option<Vec<MessageEntity>>Special entities that appear in the task text
completed_by_user: Option<User>User that completed the task; omitted if the task wasn’t completed by a user
completed_by_chat: Option<Box<Chat>>Chat that completed the task; omitted if the task wasn’t completed by a chat
completion_date: Option<i64>Point in time (Unix timestamp) when the task was completed; 0 if the task wasn’t completed
extra: BTreeMap<String, Value>Implementations§
Source§impl ChecklistTask
impl ChecklistTask
pub fn new(id: i64, text: impl Into<String>) -> Self
pub fn text_entities(self, value: Vec<MessageEntity>) -> Self
pub fn completed_by_user(self, value: User) -> Self
pub fn completed_by_chat(self, value: Box<Chat>) -> Self
pub fn completion_date(self, value: i64) -> Self
Trait Implementations§
Source§impl Clone for ChecklistTask
impl Clone for ChecklistTask
Source§impl Debug for ChecklistTask
impl Debug for ChecklistTask
Source§impl<'de> Deserialize<'de> for ChecklistTask
impl<'de> Deserialize<'de> for ChecklistTask
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 ChecklistTask
impl PartialEq for ChecklistTask
Source§impl Serialize for ChecklistTask
impl Serialize for ChecklistTask
impl StructuralPartialEq for ChecklistTask
Auto Trait Implementations§
impl Freeze for ChecklistTask
impl RefUnwindSafe for ChecklistTask
impl Send for ChecklistTask
impl Sync for ChecklistTask
impl Unpin for ChecklistTask
impl UnsafeUnpin for ChecklistTask
impl UnwindSafe for ChecklistTask
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