#[non_exhaustive]pub struct CodeUnit {Show 28 fields
pub unit_id: String,
pub path: String,
pub start_line: Integer,
pub end_line: Integer,
pub symbol: String,
pub kind: String,
pub signature: String,
pub body: String,
pub elided: bool,
pub body_hash: String,
pub description: String,
pub tier: String,
pub score: f64,
pub recent_prs: Vec<HashMap<String, Value>>,
pub examples: Vec<HashMap<String, Value>>,
pub lessons: Vec<HashMap<String, Value>>,
pub churn: Integer,
pub amp: Integer,
pub tested: bool,
pub callees: Vec<HashMap<String, Value>>,
pub granularity: String,
pub next: String,
pub outline: Vec<HashMap<String, Value>>,
pub fan_in: Integer,
pub via: String,
pub lexical_rank: Integer,
pub vector_rank: Integer,
pub namespace: String,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.unit_id: String§path: String§start_line: Integer§end_line: Integer§symbol: String§kind: String§signature: String§body: String§elided: bool§body_hash: String§description: String§tier: String§score: f64§recent_prs: Vec<HashMap<String, Value>>§examples: Vec<HashMap<String, Value>>§lessons: Vec<HashMap<String, Value>>§churn: Integer§amp: Integer§tested: bool§callees: Vec<HashMap<String, Value>>§granularity: String§next: String§outline: Vec<HashMap<String, Value>>§fan_in: Integer§via: String§lexical_rank: Integer§vector_rank: Integer§namespace: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for CodeUnit
impl<'de> Deserialize<'de> for CodeUnit
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 CodeUnit
Auto Trait Implementations§
impl Forget for CodeUnit
impl Freeze for CodeUnit
impl Move for CodeUnit
impl RefUnwindSafe for CodeUnit
impl Send for CodeUnit
impl Sync for CodeUnit
impl Unpin for CodeUnit
impl UnsafeUnpin for CodeUnit
impl UnwindSafe for CodeUnit
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