pub struct DocumentFilter {
pub language: Option<String>,
pub pattern: Option<String>,
pub scheme: Option<String>,
}Fields§
§language: Option<String>A language id, like typescript.
pattern: Option<String>A glob pattern, like *.{ts,js}.
Glob patterns can have the following syntax:
*to match one or more characters in a path segment?to match on one character in a path segment**to match any number of path segments, including none{}to group sub patterns into an OR expression. (e.g.**/*.{ts,js}matches all TypeScript and JavaScript files)[]to declare a range of characters to match in a path segment (e.g.,example.[0-9]to match onexample.0,example.1, …)[!...]to negate a range of characters to match in a path segment (e.g.,example.[!0-9]to match onexample.a,example.b, but notexample.0)
scheme: Option<String>A Uri scheme, like file or untitled.
Trait Implementations§
Source§impl Clone for DocumentFilter
impl Clone for DocumentFilter
Source§fn clone(&self) -> DocumentFilter
fn clone(&self) -> DocumentFilter
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 DocumentFilter
impl Debug for DocumentFilter
Source§impl Default for DocumentFilter
impl Default for DocumentFilter
Source§fn default() -> DocumentFilter
fn default() -> DocumentFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentFilter
impl<'de> Deserialize<'de> for DocumentFilter
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
Source§impl PartialEq for DocumentFilter
impl PartialEq for DocumentFilter
Source§impl Serialize for DocumentFilter
impl Serialize for DocumentFilter
impl StructuralPartialEq for DocumentFilter
Auto Trait Implementations§
impl Freeze for DocumentFilter
impl RefUnwindSafe for DocumentFilter
impl Send for DocumentFilter
impl Sync for DocumentFilter
impl Unpin for DocumentFilter
impl UnwindSafe for DocumentFilter
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