pub struct CodeReference {
pub file: PathBuf,
pub line: usize,
pub table: String,
pub columns: Vec<String>,
pub query_type: QueryType,
pub snippet: String,
}Expand description
A reference to a query in source code.
Fields§
§file: PathBufFile path where the reference was found
line: usizeLine number (1-indexed)
table: String§columns: Vec<String>§query_type: QueryTypeType of query
snippet: StringCode snippet containing the reference
Trait Implementations§
Source§impl Clone for CodeReference
impl Clone for CodeReference
Source§fn clone(&self) -> CodeReference
fn clone(&self) -> CodeReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodeReference
impl RefUnwindSafe for CodeReference
impl Send for CodeReference
impl Sync for CodeReference
impl Unpin for CodeReference
impl UnwindSafe for CodeReference
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