pub struct ModuleEntity {
pub name: String,
pub path: String,
pub language: String,
pub line_count: usize,
pub doc_comment: Option<String>,
pub attributes: Vec<String>,
}Expand description
Represents a file/module
Fields§
§name: StringModule name (usually filename without extension)
path: StringFull path to the file
language: StringLanguage identifier
line_count: usizeNumber of lines
doc_comment: Option<String>Documentation/module docstring
attributes: Vec<String>Module-level attributes/pragmas
Implementations§
Source§impl ModuleEntity
impl ModuleEntity
Trait Implementations§
Source§impl Clone for ModuleEntity
impl Clone for ModuleEntity
Source§fn clone(&self) -> ModuleEntity
fn clone(&self) -> ModuleEntity
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 ModuleEntity
impl Debug for ModuleEntity
Source§impl<'de> Deserialize<'de> for ModuleEntity
impl<'de> Deserialize<'de> for ModuleEntity
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
Source§impl PartialEq for ModuleEntity
impl PartialEq for ModuleEntity
Source§impl Serialize for ModuleEntity
impl Serialize for ModuleEntity
impl StructuralPartialEq for ModuleEntity
Auto Trait Implementations§
impl Freeze for ModuleEntity
impl RefUnwindSafe for ModuleEntity
impl Send for ModuleEntity
impl Sync for ModuleEntity
impl Unpin for ModuleEntity
impl UnwindSafe for ModuleEntity
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