pub struct Citation {
pub node_id: u64,
pub location: CodeLocation,
pub code_snippet: String,
pub relevance: String,
pub strength: CitationStrength,
}Expand description
A citation to a specific code node.
Fields§
§node_id: u64The node being cited.
location: CodeLocationSpecific location in source.
code_snippet: StringThe actual code being cited (signature or name).
relevance: StringHow this supports the claim.
strength: CitationStrengthStrength of evidence.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Citation
impl<'de> Deserialize<'de> for Citation
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 Citation
impl RefUnwindSafe for Citation
impl Send for Citation
impl Sync for Citation
impl Unpin for Citation
impl UnsafeUnpin for Citation
impl UnwindSafe for Citation
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