[−][src]Struct lsp_types::FileOperationPattern
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 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
)
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]
pub fn clone(&self) -> FileOperationPattern
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FileOperationPattern
[src]
impl Default for FileOperationPattern
[src]
pub fn default() -> FileOperationPattern
[src]
impl<'de> Deserialize<'de> for FileOperationPattern
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for FileOperationPattern
[src]
impl PartialEq<FileOperationPattern> for FileOperationPattern
[src]
pub fn eq(&self, other: &FileOperationPattern) -> bool
[src]
pub fn ne(&self, other: &FileOperationPattern) -> bool
[src]
impl Serialize for FileOperationPattern
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for FileOperationPattern
[src]
impl StructuralPartialEq for FileOperationPattern
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileOperationPattern
[src]
impl Send for FileOperationPattern
[src]
impl Sync for FileOperationPattern
[src]
impl Unpin for FileOperationPattern
[src]
impl UnwindSafe for FileOperationPattern
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,