pub struct EdgeEndpointRule {
pub relation: EdgeRelation,
pub source: EndpointKind,
pub target: EndpointKind,
}Expand description
A pack-declared endpoint rule for a specific edge relation (ADR-031).
Rules are additive: they extend the set of allowed
(source, relation, target) triples beyond the ADR-002 base contract.
Packs cannot tighten the base rules — only broaden them. The closed
EdgeRelation taxonomy itself is not extended; only the endpoint
contract per relation is.
Example — GTD pack allows depends_on between task notes:
ⓘ
EdgeEndpointRule {
relation: EdgeRelation::DependsOn,
source: EndpointKind::NoteOfKind("task"),
target: EndpointKind::NoteOfKind("task"),
}Fields§
§relation: EdgeRelation§source: EndpointKind§target: EndpointKindTrait Implementations§
Source§impl Clone for EdgeEndpointRule
impl Clone for EdgeEndpointRule
Source§fn clone(&self) -> EdgeEndpointRule
fn clone(&self) -> EdgeEndpointRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgeEndpointRule
impl Debug for EdgeEndpointRule
Source§impl PartialEq for EdgeEndpointRule
impl PartialEq for EdgeEndpointRule
Source§fn eq(&self, other: &EdgeEndpointRule) -> bool
fn eq(&self, other: &EdgeEndpointRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EdgeEndpointRule
impl Eq for EdgeEndpointRule
impl StructuralPartialEq for EdgeEndpointRule
Auto Trait Implementations§
impl Freeze for EdgeEndpointRule
impl RefUnwindSafe for EdgeEndpointRule
impl Send for EdgeEndpointRule
impl Sync for EdgeEndpointRule
impl Unpin for EdgeEndpointRule
impl UnsafeUnpin for EdgeEndpointRule
impl UnwindSafe for EdgeEndpointRule
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