pub struct DocumentFormattingRegistrationOptions {
pub document_selector: Option<DocumentSelector>,
}
Expand description
Registration options for a {@link DocumentFormattingRequest}.
Fields§
§document_selector: Option<DocumentSelector>
A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.
Trait Implementations§
Source§impl Clone for DocumentFormattingRegistrationOptions
impl Clone for DocumentFormattingRegistrationOptions
Source§fn clone(&self) -> DocumentFormattingRegistrationOptions
fn clone(&self) -> DocumentFormattingRegistrationOptions
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 Default for DocumentFormattingRegistrationOptions
impl Default for DocumentFormattingRegistrationOptions
Source§fn default() -> DocumentFormattingRegistrationOptions
fn default() -> DocumentFormattingRegistrationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentFormattingRegistrationOptions
impl<'de> Deserialize<'de> for DocumentFormattingRegistrationOptions
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 DocumentFormattingRegistrationOptions
impl PartialEq for DocumentFormattingRegistrationOptions
Source§fn eq(&self, other: &DocumentFormattingRegistrationOptions) -> bool
fn eq(&self, other: &DocumentFormattingRegistrationOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for DocumentFormattingRegistrationOptions
impl StructuralPartialEq for DocumentFormattingRegistrationOptions
Auto Trait Implementations§
impl Freeze for DocumentFormattingRegistrationOptions
impl RefUnwindSafe for DocumentFormattingRegistrationOptions
impl Send for DocumentFormattingRegistrationOptions
impl Sync for DocumentFormattingRegistrationOptions
impl Unpin for DocumentFormattingRegistrationOptions
impl UnwindSafe for DocumentFormattingRegistrationOptions
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