#[non_exhaustive]pub struct CompletionRequest {
pub target: CompletionTarget,
pub argument: String,
pub value: String,
pub context: HashMap<String, String>,
}Expand description
One completion/complete request, as a completer sees it.
Build one with CompletionRequest::new to call a completer directly in a
unit test.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target: CompletionTargetThe prompt or resource the argument belongs to.
argument: StringThe name of the argument being completed.
value: StringWhat the client has typed for the argument so far.
context: HashMap<String, String>The arguments the client has already resolved, by name. Empty when the client sent no context.
Implementations§
Trait Implementations§
Source§impl Clone for CompletionRequest
impl Clone for CompletionRequest
Source§impl Debug for CompletionRequest
impl Debug for CompletionRequest
impl Eq for CompletionRequest
Source§impl PartialEq for CompletionRequest
impl PartialEq for CompletionRequest
impl StructuralPartialEq for CompletionRequest
Auto Trait Implementations§
impl Forget for CompletionRequest
impl Freeze for CompletionRequest
impl Move for CompletionRequest
impl RefUnwindSafe for CompletionRequest
impl Send for CompletionRequest
impl Sync for CompletionRequest
impl Unpin for CompletionRequest
impl UnsafeUnpin for CompletionRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for CompletionRequest
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.