pub struct ChecklistTask {
pub id: i32,
pub text: FormattedText,
pub completed_by: Option<MessageSender>,
pub completion_date: i32,
}Expand description
Describes a task in a checklist
Fields§
§id: i32Unique identifier of the task
text: FormattedTextText of the task; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Url, EmailAddress, Mention, Hashtag, Cashtag and PhoneNumber entities
completed_by: Option<MessageSender>Identifier of the user or chat that completed the task; may be null if the task isn’t completed yet
completion_date: i32Point in time (Unix timestamp) when the task was completed; 0 if the task isn’t 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 · 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 Default for ChecklistTask
impl Default for ChecklistTask
Source§fn default() -> ChecklistTask
fn default() -> ChecklistTask
Returns the “default value” for a type. Read more
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