pub struct Location {
pub external: Option<bool>,
pub path: Option<String>,
pub range: Option<Box<Range>>,
}Fields§
§external: Option<bool>External is true when the answer left the repository — the case a static index cannot answer, and the reason this service resolves through dependencies.
path: Option<String>Path is repo-relative while External is false, and the module coordinate ("golang.org/x/mod@v0.14.0/semver/semver.go") once it is true.
range: Option<Box<Range>>Range is the span inside that file, in LSP positions.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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