pub enum CompletionKind {
Date,
Directive,
AccountType,
Account,
AccountSegmentFolder,
Currency,
Payee,
Tag,
Link,
}Expand description
The kind of a completion candidate.
One variant per distinct item kind emitted by either adapter, so the
neutral candidate can be mapped back to the exact LSP
CompletionItemKind / WASM CompletionKind it replaces.
Variants§
Date
Today’s date template (line start).
Directive
A directive keyword (after a date).
AccountType
A standard account type (Assets:, Expenses:, …).
Account
A fully-qualified known account name.
AccountSegmentFolder
An intermediate account segment that has further sub-segments (rendered as a folder).
Currency
A currency/commodity.
Payee
A known payee name.
Tag
A tag (after #).
Link
A link (after ^).
Trait Implementations§
Source§impl Clone for CompletionKind
impl Clone for CompletionKind
Source§fn clone(&self) -> CompletionKind
fn clone(&self) -> CompletionKind
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 moreimpl Copy for CompletionKind
Source§impl Debug for CompletionKind
impl Debug for CompletionKind
impl Eq for CompletionKind
Source§impl PartialEq for CompletionKind
impl PartialEq for CompletionKind
Source§fn eq(&self, other: &CompletionKind) -> bool
fn eq(&self, other: &CompletionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompletionKind
Auto Trait Implementations§
impl Freeze for CompletionKind
impl RefUnwindSafe for CompletionKind
impl Send for CompletionKind
impl Sync for CompletionKind
impl Unpin for CompletionKind
impl UnsafeUnpin for CompletionKind
impl UnwindSafe for CompletionKind
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