pub struct TextDocumentContentResult {
pub text: String,
}Expand description
Result of the workspace/textDocumentContent request.
@since 3.18.0 @proposed
Fields§
§text: StringThe text content of the text document. Please note, that the content of any subsequent open notifications for the text document might differ from the returned content due to whitespace and line ending normalizations done on the client
Implementations§
Trait Implementations§
Source§impl Clone for TextDocumentContentResult
impl Clone for TextDocumentContentResult
Source§fn clone(&self) -> TextDocumentContentResult
fn clone(&self) -> TextDocumentContentResult
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 TextDocumentContentResult
impl Debug for TextDocumentContentResult
Source§impl Default for TextDocumentContentResult
impl Default for TextDocumentContentResult
Source§fn default() -> TextDocumentContentResult
fn default() -> TextDocumentContentResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextDocumentContentResult
impl<'de> Deserialize<'de> for TextDocumentContentResult
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 TextDocumentContentResult
impl Hash for TextDocumentContentResult
Source§impl PartialEq for TextDocumentContentResult
impl PartialEq for TextDocumentContentResult
Source§fn eq(&self, other: &TextDocumentContentResult) -> bool
fn eq(&self, other: &TextDocumentContentResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TextDocumentContentResult
impl StructuralPartialEq for TextDocumentContentResult
Auto Trait Implementations§
impl Freeze for TextDocumentContentResult
impl RefUnwindSafe for TextDocumentContentResult
impl Send for TextDocumentContentResult
impl Sync for TextDocumentContentResult
impl Unpin for TextDocumentContentResult
impl UnsafeUnpin for TextDocumentContentResult
impl UnwindSafe for TextDocumentContentResult
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