pub struct RelationshipOutcome {
pub written: Option<Issue>,
pub relationship: Relationship,
pub changed: bool,
}Expand description
The outcome of one relationship mutation.
A typed relationship is a single directed edge, so a mutation normally
writes exactly one issue file — the one whose frontmatter owns the canonical
edge. written is None when the mutation was a no-op (an
already-present edge, or an absent edge on remove), which is what makes
“an idempotent re-apply appends no second History event” checkable.
Fields§
§written: Option<Issue>The issue whose file was written, if any.
relationship: RelationshipThe relationship the mutation concerned, in canonical form.
changed: boolWhether a file was actually written.
Trait Implementations§
Source§impl Clone for RelationshipOutcome
impl Clone for RelationshipOutcome
Source§impl Debug for RelationshipOutcome
impl Debug for RelationshipOutcome
impl Eq for RelationshipOutcome
Source§impl PartialEq for RelationshipOutcome
impl PartialEq for RelationshipOutcome
impl StructuralPartialEq for RelationshipOutcome
Auto Trait Implementations§
impl Freeze for RelationshipOutcome
impl RefUnwindSafe for RelationshipOutcome
impl Send for RelationshipOutcome
impl Sync for RelationshipOutcome
impl Unpin for RelationshipOutcome
impl UnsafeUnpin for RelationshipOutcome
impl UnwindSafe for RelationshipOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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