pub struct ChecklistTasksDone {
pub checklist_message: Option<Box<Message>>,
pub marked_as_done_task_ids: Option<Vec<Integer>>,
pub marked_as_not_done_task_ids: Option<Vec<Integer>>,
}Expand description
Describes a service message about checklist tasks marked as done or not done.
Fields§
§checklist_message: Option<Box<Message>>Message containing the checklist whose tasks were marked as done or not done.
Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
marked_as_done_task_ids: Option<Vec<Integer>>Identifiers of the tasks that were marked as done.
marked_as_not_done_task_ids: Option<Vec<Integer>>Identifiers of the tasks that were marked as not done.
Implementations§
Source§impl ChecklistTasksDone
impl ChecklistTasksDone
Sourcepub fn with_checklist_message(self, value: Message) -> Self
pub fn with_checklist_message(self, value: Message) -> Self
Sets a new checklist message.
§Arguments
value- Message containing the checklist whose tasks were marked as done or not done.
Sourcepub fn with_marked_as_done_task_ids<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = Integer>,
pub fn with_marked_as_done_task_ids<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = Integer>,
Sets a new list of task identifiers.
§Arguments
value- Identifiers of the tasks that were marked as done.
Sourcepub fn with_marked_as_not_done_task_ids<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = Integer>,
pub fn with_marked_as_not_done_task_ids<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = Integer>,
Sets a new list of task identifiers.
§Arguments
value- Identifiers of the tasks that were marked as not done.
Trait Implementations§
Source§impl Clone for ChecklistTasksDone
impl Clone for ChecklistTasksDone
Source§fn clone(&self) -> ChecklistTasksDone
fn clone(&self) -> ChecklistTasksDone
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 ChecklistTasksDone
impl Debug for ChecklistTasksDone
Source§impl Default for ChecklistTasksDone
impl Default for ChecklistTasksDone
Source§fn default() -> ChecklistTasksDone
fn default() -> ChecklistTasksDone
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChecklistTasksDone
impl<'de> Deserialize<'de> for ChecklistTasksDone
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 From<ChecklistTasksDone> for MessageData
impl From<ChecklistTasksDone> for MessageData
Source§fn from(value: ChecklistTasksDone) -> Self
fn from(value: ChecklistTasksDone) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChecklistTasksDone
impl RefUnwindSafe for ChecklistTasksDone
impl Send for ChecklistTasksDone
impl Sync for ChecklistTasksDone
impl Unpin for ChecklistTasksDone
impl UnsafeUnpin for ChecklistTasksDone
impl UnwindSafe for ChecklistTasksDone
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