pub struct Relations {
pub task: Task,
pub parent: Option<NativeId>,
pub children: Vec<NativeId>,
pub children_complete: bool,
}Expand description
What a source reads of one task’s relations.
Fields§
§task: TaskThe task as the source reads it — its links under TaskLink::METADATA_KEY, its
version, and its content with the ## Links section already stripped.
parent: Option<NativeId>Its parent, a task of the same source, or None.
children: Vec<NativeId>Its children, each a task of the same source.
children_complete: boolWhether children is every child: false when the source read fewer than it holds.
Trait Implementations§
impl StructuralPartialEq for Relations
Auto Trait Implementations§
impl Forget for Relations
impl Freeze for Relationswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Label>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Repository>: Freeze,
PhantomData<TaskRef>: Freeze,
PhantomData<String>: Freeze,
PhantomData<NativeId>: Freeze,
impl Move for Relations
impl RefUnwindSafe for Relations
impl Send for Relations
impl Sync for Relations
impl Unpin for Relations
impl UnsafeUnpin for Relationswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Label>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Repository>: UnsafeUnpin,
PhantomData<TaskRef>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<NativeId>: UnsafeUnpin,
impl UnwindSafe for Relationswhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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