pub struct ReferencesResult {
pub locations: Vec<Location>,
pub truncated: bool,
pub positions_degraded: bool,
}Expand description
Result of a references request.
Fields§
§locations: Vec<Location>Locations of all references.
truncated: boolWhether locations was capped below the LSP server’s full response
(see MAX_NORMALIZED_LOCATIONS, #474) – if true, more references
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 ReferencesResult
impl Clone for ReferencesResult
Source§impl Debug for ReferencesResult
impl Debug for ReferencesResult
Source§impl<'de> Deserialize<'de> for ReferencesResult
impl<'de> Deserialize<'de> for ReferencesResult
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 ReferencesResult
impl JsonSchema for ReferencesResult
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 ReferencesResult
impl RefUnwindSafe for ReferencesResult
impl Send for ReferencesResult
impl Sync for ReferencesResult
impl Unpin for ReferencesResult
impl UnsafeUnpin for ReferencesResult
impl UnwindSafe for ReferencesResult
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