Struct lsp_types::FileOperationPattern[][src]

pub struct FileOperationPattern {
    pub glob: String,
    pub matches: Option<FileOperationPatternKind>,
    pub options: Option<FileOperationPatternOptions>,
}

A pattern to describe in which file operation requests or notifications the server is interested in.

@since 3.16.0

Fields

glob: String

The glob pattern to match. 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 conditions (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 on example.0, example.1, …)
  • [!...] to negate a range of characters to match in a path segment (e.g., example.[!0-9] to match on example.a, example.b, but not example.0)
matches: Option<FileOperationPatternKind>

Whether to match files or folders with this pattern.

Matches both if undefined.

options: Option<FileOperationPatternOptions>

Additional options used during matching.

Trait Implementations

impl Clone for FileOperationPattern[src]

impl Debug for FileOperationPattern[src]

impl Default for FileOperationPattern[src]

impl<'de> Deserialize<'de> for FileOperationPattern[src]

impl Eq for FileOperationPattern[src]

impl PartialEq<FileOperationPattern> for FileOperationPattern[src]

impl Serialize for FileOperationPattern[src]

impl StructuralEq for FileOperationPattern[src]

impl StructuralPartialEq for FileOperationPattern[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.