pub struct CompletionRule {
pub prefix: String,
pub kind: CompletionRuleKind,
}Expand description
A single prompt completion rule keyed by the word prefix that activates it.
Fields§
§prefix: StringWord prefix that activates this completion rule.
kind: CompletionRuleKindCompletion behavior selected for the prefix.
Implementations§
Trait Implementations§
Source§impl Clone for CompletionRule
impl Clone for CompletionRule
Source§impl Debug for CompletionRule
impl Debug for CompletionRule
impl Eq for CompletionRule
Source§impl PartialEq for CompletionRule
impl PartialEq for CompletionRule
impl StructuralPartialEq for CompletionRule
Auto Trait Implementations§
impl Freeze for CompletionRule
impl RefUnwindSafe for CompletionRule
impl Send for CompletionRule
impl Sync for CompletionRule
impl Unpin for CompletionRule
impl UnsafeUnpin for CompletionRule
impl UnwindSafe for CompletionRule
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