pub struct TaskDetailRead {
pub task: Task,
pub comments: Option<Result<Option<Page<Comment>>, SourceError>>,
}Expand description
One task as TaskSource::get_task_details reads it:
the task, and the first page of its comments when they were asked for.
The comments are a result of their own rather than part of the task’s, because the two can fail apart: a task that was read and whose comments could not be — a board draft, which has none — is still a task a caller is owed, with the comment failure beside it.
Fields§
§task: TaskThe task, exactly as TaskSource::get_task answers it.
comments: Option<Result<Option<Page<Comment>>, SourceError>>The first page of its comments, oldest first: None when the read did not ask for
them, and otherwise exactly what
TaskSource::task_comments answers for that page
— Ok(None) included, for a task gone between the two halves of a read that made two.
Trait Implementations§
Source§impl Clone for TaskDetailRead
impl Clone for TaskDetailRead
Source§impl Debug for TaskDetailRead
impl Debug for TaskDetailRead
Source§impl PartialEq for TaskDetailRead
impl PartialEq for TaskDetailRead
impl StructuralPartialEq for TaskDetailRead
Auto Trait Implementations§
impl Freeze for TaskDetailRead
impl RefUnwindSafe for TaskDetailRead
impl Send for TaskDetailRead
impl Sync for TaskDetailRead
impl Unpin for TaskDetailRead
impl UnsafeUnpin for TaskDetailRead
impl UnwindSafe for TaskDetailRead
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