pub struct Task { /* private fields */ }
Implementations§
Source§impl Task
helpers for content
impl Task
helpers for content
pub fn title(&self) -> String
pub fn event_id_str(&self) -> String
pub fn display(&self) -> Option<Display>
pub fn task_list_id_str(&self) -> String
pub fn description(&self) -> Option<MsgContent>
pub fn sort_order(&self) -> u32
pub fn room_id_str(&self) -> String
pub fn assignees_str(&self) -> Vec<String>
pub fn priority(&self) -> Option<u8>
pub fn is_done(&self) -> bool
pub fn progress_percent(&self) -> Option<u8>
pub fn keywords(&self) -> Vec<String>
pub fn categories(&self) -> Vec<String>
Source§impl Task
Custom functions
impl Task
Custom functions
pub async fn refresh(&self) -> Result<Task>
pub async fn can_redact(&self) -> Result<bool>
pub fn is_assigned_to_me(&self) -> bool
pub async fn assign_self(&self) -> Result<OwnedEventId>
pub async fn unassign_self(&self) -> Result<OwnedEventId>
pub fn update_builder(&self) -> Result<TaskUpdateBuilder>
pub fn subscribe_stream(&self) -> impl Stream<Item = bool>
pub fn subscribe(&self) -> Receiver<()>
pub async fn comments(&self) -> Result<CommentsManager>
pub async fn attachments(&self) -> Result<AttachmentsManager>
Methods from Deref<Target = Task>§
pub fn title(&self) -> &String
pub fn assignees(&self) -> Vec<OwnedUserId>
pub fn room_id(&self) -> &RoomId
pub fn sender(&self) -> &UserId
pub fn is_done(&self) -> bool
pub fn is_assigned(&self, user_id: &UserId) -> bool
pub fn percent(&self) -> Option<u8>
pub fn due_date(&self) -> Option<String>
pub fn utc_due_time_of_day(&self) -> Option<i32>
pub fn utc_start_rfc3339(&self) -> Option<String>
pub fn updater(&self) -> TaskUpdateBuilder
pub fn self_assign_event_content(&self) -> TaskSelfAssignEventContent
pub fn self_unassign_event_content(&self) -> TaskSelfUnassignEventContent
Methods from Deref<Target = TaskEventContent>§
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 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§
Auto Trait Implementations§
impl Freeze for Task
impl !RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl !UnwindSafe for Task
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<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>
Converts
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>
Converts
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