pub struct WorkspaceOptions {
pub workspace_folders: Option<WorkspaceFoldersServerCapabilities>,
pub file_operations: Option<FileOperationOptions>,
pub text_document_content: Option<TextDocumentContent>,
}Expand description
Defines workspace specific capabilities of the server.
@since 3.18.0
Fields§
§workspace_folders: Option<WorkspaceFoldersServerCapabilities>The server supports workspace folder.
@since 3.6.0
file_operations: Option<FileOperationOptions>The server is interested in notifications/requests for operations on files.
@since 3.16.0
text_document_content: Option<TextDocumentContent>The server supports the workspace/textDocumentContent request.
@since 3.18.0 @proposed
Implementations§
Source§impl WorkspaceOptions
impl WorkspaceOptions
pub const fn new( workspace_folders: Option<WorkspaceFoldersServerCapabilities>, file_operations: Option<FileOperationOptions>, text_document_content: Option<TextDocumentContent>, ) -> Self
Trait Implementations§
Source§impl Clone for WorkspaceOptions
impl Clone for WorkspaceOptions
Source§fn clone(&self) -> WorkspaceOptions
fn clone(&self) -> WorkspaceOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceOptions
impl Debug for WorkspaceOptions
Source§impl Default for WorkspaceOptions
impl Default for WorkspaceOptions
Source§fn default() -> WorkspaceOptions
fn default() -> WorkspaceOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkspaceOptions
impl<'de> Deserialize<'de> for WorkspaceOptions
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 Hash for WorkspaceOptions
impl Hash for WorkspaceOptions
Source§impl PartialEq for WorkspaceOptions
impl PartialEq for WorkspaceOptions
Source§fn eq(&self, other: &WorkspaceOptions) -> bool
fn eq(&self, other: &WorkspaceOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkspaceOptions
impl Serialize for WorkspaceOptions
impl Eq for WorkspaceOptions
impl StructuralPartialEq for WorkspaceOptions
Auto Trait Implementations§
impl Freeze for WorkspaceOptions
impl RefUnwindSafe for WorkspaceOptions
impl Send for WorkspaceOptions
impl Sync for WorkspaceOptions
impl Unpin for WorkspaceOptions
impl UnsafeUnpin for WorkspaceOptions
impl UnwindSafe for WorkspaceOptions
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