pub struct ProjectStructure {
pub name: String,
pub root_path: String,
pub archetype: Option<String>,
pub entities: Vec<Entity>,
pub repositories: Vec<Repository>,
pub services: Vec<Service>,
pub handlers: Vec<Handler>,
pub files_by_layer: HashMap<String, Vec<String>>,
pub dependencies: Vec<String>,
}Expand description
Complete project structure analysis
Fields§
§name: StringProject name from Cargo.toml
root_path: StringProject root path
archetype: Option<String>Detected archetype (if recognizable)
entities: Vec<Entity>Entities in domain layer
repositories: Vec<Repository>Repository traits in domain layer
services: Vec<Service>Services in application layer
handlers: Vec<Handler>Handlers in presentation layer
files_by_layer: HashMap<String, Vec<String>>All source files organized by layer
dependencies: Vec<String>Dependencies from Cargo.toml
Trait Implementations§
Source§impl Clone for ProjectStructure
impl Clone for ProjectStructure
Source§impl Debug for ProjectStructure
impl Debug for ProjectStructure
Source§impl<'de> Deserialize<'de> for ProjectStructure
impl<'de> Deserialize<'de> for ProjectStructure
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 Forget for ProjectStructure
impl Freeze for ProjectStructure
impl Move for ProjectStructure
impl RefUnwindSafe for ProjectStructure
impl Send for ProjectStructure
impl Sync for ProjectStructure
impl Unpin for ProjectStructure
impl UnsafeUnpin for ProjectStructure
impl UnwindSafe for ProjectStructure
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