pub struct ChecklistTaskBuilder {
pub id: i64,
pub text: String,
pub text_entities: Option<Vec<MessageEntity>>,
pub completed_by_user: Option<BoxWrapper<Unbox<User>>>,
pub completed_by_chat: Option<BoxWrapper<Unbox<Chat>>>,
pub completion_date: Option<i64>,
}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>>Optional. Special entities that appear in the task text
completed_by_user: Option<BoxWrapper<Unbox<User>>>Optional. User that completed the task; omitted if the task wasn’t completed by a user
completed_by_chat: Option<BoxWrapper<Unbox<Chat>>>Optional. Chat that completed the task; omitted if the task wasn’t completed by a chat
completion_date: Option<i64>Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn’t completed
Implementations§
Source§impl ChecklistTaskBuilder
impl ChecklistTaskBuilder
pub fn new(id: i64, text: String) -> Self
Sourcepub fn set_text_entities(self, text_entities: Vec<MessageEntity>) -> Self
pub fn set_text_entities(self, text_entities: Vec<MessageEntity>) -> Self
Optional. Special entities that appear in the task text
Sourcepub fn set_completed_by_user(self, completed_by_user: User) -> Self
pub fn set_completed_by_user(self, completed_by_user: User) -> Self
Optional. User that completed the task; omitted if the task wasn’t completed by a user
Sourcepub fn set_completed_by_chat(self, completed_by_chat: Chat) -> Self
pub fn set_completed_by_chat(self, completed_by_chat: Chat) -> Self
Optional. Chat that completed the task; omitted if the task wasn’t completed by a chat
Sourcepub fn set_completion_date(self, completion_date: i64) -> Self
pub fn set_completion_date(self, completion_date: i64) -> Self
Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn’t completed
pub fn build(self) -> ChecklistTask
Trait Implementations§
Source§impl Clone for ChecklistTaskBuilder
impl Clone for ChecklistTaskBuilder
Source§fn clone(&self) -> ChecklistTaskBuilder
fn clone(&self) -> ChecklistTaskBuilder
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 ChecklistTaskBuilder
impl Debug for ChecklistTaskBuilder
Source§impl Default for ChecklistTaskBuilder
impl Default for ChecklistTaskBuilder
Source§fn default() -> ChecklistTaskBuilder
fn default() -> ChecklistTaskBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChecklistTaskBuilder
impl<'de> Deserialize<'de> for ChecklistTaskBuilder
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 Hash for ChecklistTaskBuilder
impl Hash for ChecklistTaskBuilder
Source§impl Ord for ChecklistTaskBuilder
impl Ord for ChecklistTaskBuilder
Source§fn cmp(&self, other: &ChecklistTaskBuilder) -> Ordering
fn cmp(&self, other: &ChecklistTaskBuilder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChecklistTaskBuilder
impl PartialEq for ChecklistTaskBuilder
Source§impl PartialOrd for ChecklistTaskBuilder
impl PartialOrd for ChecklistTaskBuilder
Source§impl Serialize for ChecklistTaskBuilder
impl Serialize for ChecklistTaskBuilder
impl Eq for ChecklistTaskBuilder
impl StructuralPartialEq for ChecklistTaskBuilder
Auto Trait Implementations§
impl Freeze for ChecklistTaskBuilder
impl RefUnwindSafe for ChecklistTaskBuilder
impl Send for ChecklistTaskBuilder
impl Sync for ChecklistTaskBuilder
impl Unpin for ChecklistTaskBuilder
impl UnsafeUnpin for ChecklistTaskBuilder
impl UnwindSafe for ChecklistTaskBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.