pub enum WriteBackKind {
EntityFrontMatter,
CaseId,
InlineEvent,
Relationship,
RelatedCase,
InvolvedIn {
entity_name: String,
},
TimelineEdge,
}Expand description
The type of write-back insertion.
Variants§
EntityFrontMatter
Insert id: <NULID> into YAML front matter of an entity file.
line is the line of the --- closing delimiter; insert before it.
CaseId
Insert id: <NULID> into YAML front matter of a case file.
line is the line of the --- closing delimiter; insert before it.
InlineEvent
Insert - id: <NULID> bullet after the H3 heading line.
line is the line of the ### Name heading.
Relationship
Insert - id: <NULID> nested bullet after the relationship line.
line is the line of - Source -> Target: type.
RelatedCase
Insert id: <NULID> after a ## Related Cases bullet.
line is the line of - case/path.
InvolvedIn
Insert id: <NULID> after a ## Involved bullet.
line is the line of - Entity Name (0 if section doesn’t exist yet).
entity_name is needed to create the bullet when the section is missing.
TimelineEdge
Insert id: <NULID> after a ## Timeline bullet.
line is the line of - Event A -> Event B.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteBackKind
impl RefUnwindSafe for WriteBackKind
impl Send for WriteBackKind
impl Sync for WriteBackKind
impl Unpin for WriteBackKind
impl UnsafeUnpin for WriteBackKind
impl UnwindSafe for WriteBackKind
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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