pub struct FormatDocumentResult {
pub edits: Vec<TextEdit>,
pub positions_degraded: Option<PositionDegradation>,
}Expand description
Result of a format document request.
Fields§
§edits: Vec<TextEdit>List of edits to format the document.
positions_degraded: Option<PositionDegradation>Set only when some character offsets are inexact (non-UTF-16 servers); omitted otherwise.
Tells whether the queried position or only the returned offsets are affected.
Trait Implementations§
Source§impl Clone for FormatDocumentResult
impl Clone for FormatDocumentResult
Source§impl Debug for FormatDocumentResult
impl Debug for FormatDocumentResult
Source§impl<'de> Deserialize<'de> for FormatDocumentResult
impl<'de> Deserialize<'de> for FormatDocumentResult
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 JsonSchema for FormatDocumentResult
impl JsonSchema for FormatDocumentResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FormatDocumentResult
impl RefUnwindSafe for FormatDocumentResult
impl Send for FormatDocumentResult
impl Sync for FormatDocumentResult
impl Unpin for FormatDocumentResult
impl UnsafeUnpin for FormatDocumentResult
impl UnwindSafe for FormatDocumentResult
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