pub struct CompletionConfig {
pub language: String,
pub keywords: Vec<String>,
pub snippets: Vec<CompletionSnippet>,
pub ranking_weights: RankingWeights,
pub provider: Option<String>,
}Expand description
Completion configuration for a language
Fields§
§language: String§keywords: Vec<String>§snippets: Vec<CompletionSnippet>§ranking_weights: RankingWeights§provider: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CompletionConfig
impl Clone for CompletionConfig
Source§fn clone(&self) -> CompletionConfig
fn clone(&self) -> CompletionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompletionConfig
impl Debug for CompletionConfig
Source§impl<'de> Deserialize<'de> for CompletionConfig
impl<'de> Deserialize<'de> for CompletionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompletionConfig
impl RefUnwindSafe for CompletionConfig
impl Send for CompletionConfig
impl Sync for CompletionConfig
impl Unpin for CompletionConfig
impl UnwindSafe for CompletionConfig
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