pub struct TaskEventContent {
pub title: String,
pub task_list_id: BelongsTo,
pub description: Option<TextMessageEventContent>,
pub due_date: Option<Date>,
pub utc_due_time_of_day: Option<i32>,
pub utc_start: Option<UtcDateTime>,
pub progress_percent: Option<u8>,
pub sort_order: u32,
pub priority: Priority,
pub display: Option<Display>,
pub keywords: Vec<String>,
pub categories: Vec<String>,
}
Expand description
Fields§
§title: String
The title of the Task
task_list_id: BelongsTo
Every tasks belongs to a tasklist
description: Option<TextMessageEventContent>
Further information describing the task
due_date: Option<Date>
Which day is this task due
utc_due_time_of_day: Option<i32>
Any particular time this task is due as seconds since/to midnight UTC make sure to include any
utc_start: Option<UtcDateTime>
When was this task started?
progress_percent: Option<u8>
How far along is this task in percent (everything > 100: = 100)
sort_order: u32
Sort order within the TaskList
priority: Priority
the priority of the Task
display: Option<Display>
Display this task
keywords: Vec<String>
§categories: Vec<String>
Implementations§
Source§impl TaskEventContent
Auto-generated by derive_getters::Getters
.
impl TaskEventContent
Auto-generated by derive_getters::Getters
.
Sourcepub fn task_list_id(&self) -> &BelongsTo
pub fn task_list_id(&self) -> &BelongsTo
Every tasks belongs to a tasklist
Sourcepub fn description(&self) -> &Option<TextMessageEventContent>
pub fn description(&self) -> &Option<TextMessageEventContent>
Further information describing the task
Sourcepub fn utc_due_time_of_day(&self) -> &Option<i32>
pub fn utc_due_time_of_day(&self) -> &Option<i32>
Any particular time this task is due as seconds since/to midnight UTC make sure to include any
Sourcepub fn utc_start(&self) -> &Option<UtcDateTime>
pub fn utc_start(&self) -> &Option<UtcDateTime>
When was this task started?
Sourcepub fn progress_percent(&self) -> &Option<u8>
pub fn progress_percent(&self) -> &Option<u8>
How far along is this task in percent (everything > 100: = 100)
Sourcepub fn sort_order(&self) -> &u32
pub fn sort_order(&self) -> &u32
Sort order within the TaskList
Sourcepub fn categories(&self) -> &Vec<String>
pub fn categories(&self) -> &Vec<String>
Get field categories
from instance of TaskEventContent
.
Trait Implementations§
Source§impl Clone for TaskEventContent
impl Clone for TaskEventContent
Source§fn clone(&self) -> TaskEventContent
fn clone(&self) -> TaskEventContent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TaskEventContent
impl Debug for TaskEventContent
Source§impl<'de> Deserialize<'de> for TaskEventContent
impl<'de> Deserialize<'de> for TaskEventContent
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>,
Source§impl EventContent for TaskEventContent
impl EventContent for TaskEventContent
Source§type EventType = MessageLikeEventType
type EventType = MessageLikeEventType
Source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
m.room.message
.Source§impl RedactContent for TaskEventContent
impl RedactContent for TaskEventContent
Source§type Redacted = RedactedTaskEventContent
type Redacted = RedactedTaskEventContent
Source§fn redact(self, version: &RoomVersionId) -> RedactedTaskEventContent
fn redact(self, version: &RoomVersionId) -> RedactedTaskEventContent
self
into a redacted form (removing most or all fields) according to the spec. Read moreSource§impl Serialize for TaskEventContent
impl Serialize for TaskEventContent
impl MessageLikeEventContent for TaskEventContent
Auto Trait Implementations§
impl Freeze for TaskEventContent
impl RefUnwindSafe for TaskEventContent
impl Send for TaskEventContent
impl Sync for TaskEventContent
impl Unpin for TaskEventContent
impl UnwindSafe for TaskEventContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
impl<T> EventContentFromType for Twhere
T: EventContent + DeserializeOwned,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more