Struct languageserver_types::DocumentFilter
[−]
[src]
pub struct DocumentFilter { pub language: Option<String>, pub scheme: Option<String>, pub pattern: Option<String>, }
A document filter denotes a document through properties like language, schema or pattern. Examples are a filter that applies to TypeScript files on disk or a filter the applies to JSON files with name package.json:
{ language: 'typescript', scheme: 'file' } { language: 'json', pattern: '**/package.json' }
Fields
language: Option<String>
A language id, like typescript
.
scheme: Option<String>
A Uri scheme, like file
or untitled
.
pattern: Option<String>
A glob pattern, like *.{ts,js}
.
Trait Implementations
impl Debug for DocumentFilter
[src]
impl Eq for DocumentFilter
[src]
impl PartialEq for DocumentFilter
[src]
fn eq(&self, __arg_0: &DocumentFilter) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DocumentFilter) -> bool
[src]
This method tests for !=
.
impl Clone for DocumentFilter
[src]
fn clone(&self) -> DocumentFilter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more