pub struct DefinitionResult {
pub locations: Vec<Location>,
pub truncated: bool,
pub positions_degraded: bool,
}Expand description
Result of a definition request.
Fields§
§locations: Vec<Location>Locations of the definition.
truncated: boolWhether locations was capped below the LSP server’s full response
(see MAX_NORMALIZED_LOCATIONS, #474) – if true, more locations
exist than are returned here. Omitted (defaults to false) when
serialized.
positions_degraded: boolWhether a position in this response could not be resolved for
encoding conversion – disk-read budget exhaustion, an unresolvable
server-supplied path, a line past EOF, or invalid UTF-8 content can
each cause this – meaning some locations entries’ character values may be
wrong for a non-UTF-16 LSP server (#497). Omitted (defaults to
false) when serialized.
Trait Implementations§
Source§impl Clone for DefinitionResult
impl Clone for DefinitionResult
Source§impl Debug for DefinitionResult
impl Debug for DefinitionResult
Source§impl<'de> Deserialize<'de> for DefinitionResult
impl<'de> Deserialize<'de> for DefinitionResult
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 DefinitionResult
impl JsonSchema for DefinitionResult
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 DefinitionResult
impl RefUnwindSafe for DefinitionResult
impl Send for DefinitionResult
impl Sync for DefinitionResult
impl Unpin for DefinitionResult
impl UnsafeUnpin for DefinitionResult
impl UnwindSafe for DefinitionResult
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