pub struct TaskLink {
pub link_type: String,
pub direction: LinkDirection,
pub other: String,
}Expand description
One typed link, as one endpoint holds it under TaskLink::METADATA_KEY.
Fields§
§link_type: StringThe link’s type name — the caller’s word, which no destination stores natively.
direction: LinkDirectionWhich end of the directed link this item is.
other: StringThe other item’s qualified id, <source>:<native-id>.
Implementations§
Source§impl TaskLink
impl TaskLink
Sourcepub const METADATA_KEY: &'static str = "onetaskgraph.links"
pub const METADATA_KEY: &'static str = "onetaskgraph.links"
The reserved metadata key every endpoint of a link holds its links under: a JSON list
of {"type", "direction", "other"}.
Written only by the engine’s link verbs, through a targeted update, and never carried by a copy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskLink
impl<'de> Deserialize<'de> for TaskLink
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskLink
Source§impl JsonSchema for TaskLink
impl JsonSchema for TaskLink
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for TaskLink
impl Ord for TaskLink
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TaskLink
impl PartialOrd for TaskLink
impl StructuralPartialEq for TaskLink
Auto Trait Implementations§
impl Forget for TaskLink
impl Freeze for TaskLink
impl Move for TaskLink
impl RefUnwindSafe for TaskLink
impl Send for TaskLink
impl Sync for TaskLink
impl Unpin for TaskLink
impl UnsafeUnpin for TaskLink
impl UnwindSafe for TaskLink
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