pub enum GraphNode {
File {
file_id: FileId,
path: String,
language: Language,
},
Function {
file_id: FileId,
name: String,
qualified_name: String,
is_async: bool,
is_handler: bool,
http_method: Option<String>,
http_path: Option<String>,
},
Class {
file_id: FileId,
name: String,
},
ExternalModule {
name: String,
category: ModuleCategory,
},
FastApiApp {
file_id: FileId,
var_name: String,
},
FastApiRoute {
file_id: FileId,
http_method: String,
path: String,
},
FastApiMiddleware {
file_id: FileId,
app_var_name: String,
middleware_type: String,
},
}Expand description
Nodes in the code graph.
Variants§
File
A source file
Function
A function or method definition
Fields
Class
A class or type definition
ExternalModule
An external module/library dependency
Fields
§
category: ModuleCategoryCategory for grouping
FastApiApp
FastApiRoute
FastApiMiddleware
Implementations§
Source§impl GraphNode
impl GraphNode
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphNode
impl<'de> Deserialize<'de> for GraphNode
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 GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
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