Struct acter_core::events::tasks::TaskEventContent
source · 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
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
§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
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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