pub struct CodeEntity {
pub name: String,
pub kind: EntityKind,
pub start_line: usize,
pub end_line: usize,
pub visibility: Visibility,
pub doc_comment: Option<String>,
pub imports: Vec<String>,
pub exports: Vec<String>,
pub calls: Vec<String>,
pub complexity: u32,
}Expand description
A detected code entity
Fields§
§name: String§kind: EntityKind§start_line: usize§end_line: usize§visibility: Visibility§doc_comment: Option<String>§imports: Vec<String>§exports: Vec<String>§calls: Vec<String>§complexity: u32Trait Implementations§
Source§impl Clone for CodeEntity
impl Clone for CodeEntity
Source§fn clone(&self) -> CodeEntity
fn clone(&self) -> CodeEntity
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 moreSource§impl Debug for CodeEntity
impl Debug for CodeEntity
Source§impl<'de> Deserialize<'de> for CodeEntity
impl<'de> Deserialize<'de> for CodeEntity
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 CodeEntity
impl RefUnwindSafe for CodeEntity
impl Send for CodeEntity
impl Sync for CodeEntity
impl Unpin for CodeEntity
impl UnwindSafe for CodeEntity
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