pub struct RqHit {
pub name: String,
pub file: String,
pub line: u64,
pub kind: String,
pub confidence: f64,
pub via: String,
pub proximity: usize,
/* private fields */
}Expand description
One code definition rq found, plus the candidate query that surfaced it.
Fields§
§name: String§file: String§line: u64§kind: String§confidence: f64§via: StringThe graphql-ruby candidate query that surfaced this hit — set by gqls, not read from rq, but included in serialized output.
proximity: usizeShared leading path components between the schema’s package and this hit’s file — the primary rank key when a file schema is known, so a resolver in the schema’s own subgraph outranks a same-named one elsewhere in the monorepo.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RqHit
impl<'de> Deserialize<'de> for RqHit
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
Auto Trait Implementations§
impl Freeze for RqHit
impl RefUnwindSafe for RqHit
impl Send for RqHit
impl Sync for RqHit
impl Unpin for RqHit
impl UnsafeUnpin for RqHit
impl UnwindSafe for RqHit
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