pub struct CodeGraphV1 {
pub schema: String,
pub revision_hint: Option<String>,
pub nodes: Vec<CodeNodeV1>,
pub edges: Vec<CodeEdgeV1>,
}Expand description
The engine’s code graph of one repo.
Fields§
§schema: String§revision_hint: Option<String>The git commit the graph was built from (40 or 64 lowercase hex).
nodes: Vec<CodeNodeV1>Sorted by id, without repeats.
edges: Vec<CodeEdgeV1>Sorted by (from, to, type), without repeats; both ends are nodes.
Implementations§
Source§impl CodeGraphV1
impl CodeGraphV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for CodeGraphV1
impl Clone for CodeGraphV1
Source§impl Debug for CodeGraphV1
impl Debug for CodeGraphV1
Source§impl<'de> Deserialize<'de> for CodeGraphV1
impl<'de> Deserialize<'de> for CodeGraphV1
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 Eq for CodeGraphV1
Source§impl PartialEq for CodeGraphV1
impl PartialEq for CodeGraphV1
Source§impl Serialize for CodeGraphV1
impl Serialize for CodeGraphV1
impl StructuralPartialEq for CodeGraphV1
Auto Trait Implementations§
impl Forget for CodeGraphV1
impl Freeze for CodeGraphV1
impl Move for CodeGraphV1
impl RefUnwindSafe for CodeGraphV1
impl Send for CodeGraphV1
impl Sync for CodeGraphV1
impl Unpin for CodeGraphV1
impl UnsafeUnpin for CodeGraphV1
impl UnwindSafe for CodeGraphV1
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