enum CompletionContext {
Empty,
ClauseKeyword,
TableName {
keyspace: Option<String>,
},
ColumnName {
keyspace: Option<String>,
table: String,
},
ConsistencyLevel,
DescribeTarget,
FilePath,
KeyspaceName,
}Expand description
Detected completion context based on the input up to the cursor.
Variants§
Empty
At the start of input — complete with statement keywords and shell commands.
ClauseKeyword
After a statement keyword — complete with clause keywords.
TableName
After FROM, INTO, UPDATE, etc. — complete with table names.
ColumnName
After SELECT … FROM table WHERE — complete with column names.
ConsistencyLevel
After CONSISTENCY — complete with consistency levels.
DescribeTarget
After DESCRIBE/DESC — complete with sub-commands or schema names.
FilePath
After SOURCE or CAPTURE — complete with file paths.
KeyspaceName
After USE — complete with keyspace names.
Trait Implementations§
Source§impl Debug for CompletionContext
impl Debug for CompletionContext
Source§impl PartialEq for CompletionContext
impl PartialEq for CompletionContext
impl StructuralPartialEq for CompletionContext
Auto Trait Implementations§
impl Freeze for CompletionContext
impl RefUnwindSafe for CompletionContext
impl Send for CompletionContext
impl Sync for CompletionContext
impl Unpin for CompletionContext
impl UnwindSafe for CompletionContext
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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