pub struct Query {
pub character: Option<i32>,
pub line: Option<i32>,
pub path: Option<String>,
pub relation: Option<String>,
pub repo: Option<String>,
pub rev: Option<String>,
}Fields§
§character: Option<i32>Character is a 0-based UTF-16 code-unit offset within Line, per the LSP specification — not a byte offset and not a rune index.
line: Option<i32>Line is 0-based, per the LSP specification.
path: Option<String>Path is the repo-relative file, e.g. "apps/lsp/lsp.go".
relation: Option<String>Relation refines locate: definition, reference, type or implementation. Empty means definition. Every other op ignores it.
repo: Option<String>Repo is the repository NAME within the caller’s own org, e.g. "cloud". Not a URL and not an owner/name pair: the owner is the validated principal’s org, so this names a repository the caller already owns.
rev: Option<String>Rev is a branch, tag or commit sha. Empty means the default branch. It is resolved to a commit before anything else happens, so an answer is always about one immutable tree.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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 Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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