pub struct FunctionRow {Show 21 fields
pub id: i64,
pub ecosystem: String,
pub package: String,
pub version: String,
pub license: Option<String>,
pub path: String,
pub language: String,
pub name: String,
pub kind: String,
pub start_line: usize,
pub end_line: usize,
pub start_column: usize,
pub end_column: usize,
pub start_byte: usize,
pub end_byte: usize,
pub parent_id: Option<i64>,
pub token_count: usize,
pub node_count: usize,
pub depth: usize,
pub indexed: bool,
pub exact_hashes: BTreeMap<Level, String>,
}Expand description
One occurrence of a stored function, for export.
Fields§
§id: i64Identifier of the function in the database.
ecosystem: StringEcosystem of the package.
package: StringName of the package.
version: StringVersion of the package.
license: Option<String>License of the package version.
path: StringPath of the file in the package.
language: StringLanguage of the file.
name: StringName of the function (for display).
kind: StringTree-sitter node kind of the function.
start_line: usizeFirst line (1-based).
end_line: usizeLast line (1-based, inclusive).
start_column: usize1-based byte column of the first character.
end_column: usize1-based byte column of the last character.
start_byte: usizeStart of the byte range in the file.
end_byte: usizeEnd of the byte range in the file (exclusive).
parent_id: Option<i64>Identifier of the enclosing function, if any.
token_count: usizeNumber of tokens.
node_count: usizeNumber of named syntax tree nodes.
depth: usizeDepth of the syntax tree.
indexed: boolWhether the function has fingerprints.
exact_hashes: BTreeMap<Level, String>Exact hashes per normalization level (hex).
Trait Implementations§
Source§impl Clone for FunctionRow
impl Clone for FunctionRow
Source§impl Debug for FunctionRow
impl Debug for FunctionRow
Auto Trait Implementations§
impl Freeze for FunctionRow
impl RefUnwindSafe for FunctionRow
impl Send for FunctionRow
impl Sync for FunctionRow
impl Unpin for FunctionRow
impl UnsafeUnpin for FunctionRow
impl UnwindSafe for FunctionRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more