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<Chat>,
pub completion_date: Option<i64>,
}Expand description
A single 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 not completed by a user.
completed_by_chat: Option<Chat>Chat that completed the task; omitted if not completed by a chat.
completion_date: Option<i64>Unix timestamp when the task was completed; 0 if not completed.
Trait Implementations§
Source§impl Clone for ChecklistTask
impl Clone for ChecklistTask
Source§fn clone(&self) -> ChecklistTask
fn clone(&self) -> ChecklistTask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
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