pub struct ExportModuleSnapshot {
pub name: String,
pub files: Vec<String>,
pub cohesion: f64,
pub coupling: f64,
pub features: Vec<String>,
pub dependencies: Vec<String>,
}Expand description
导出快照中的模块摘要(快照 JSON 的 modules 项)
name/cohesion/coupling 直接来自 graph.modules;files 由模块节点反查 file_path 派生(去重排序);features 取同模块卡片的特征追溯列表 (生成层 backfill_features 已按模块回填,无需重算交集)。
Fields§
§name: String§files: Vec<String>§cohesion: f64§coupling: f64§features: Vec<String>§dependencies: Vec<String>依赖的模块名列表(U05/D9:module-deps.html 此前只有节点零边—— 快照无依赖字段,HTML 侧画不出依赖边;serde default 兼容旧快照)
Trait Implementations§
Source§impl Clone for ExportModuleSnapshot
impl Clone for ExportModuleSnapshot
Source§fn clone(&self) -> ExportModuleSnapshot
fn clone(&self) -> ExportModuleSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExportModuleSnapshot
impl Debug for ExportModuleSnapshot
Source§impl<'de> Deserialize<'de> for ExportModuleSnapshot
impl<'de> Deserialize<'de> for ExportModuleSnapshot
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 ExportModuleSnapshot
impl RefUnwindSafe for ExportModuleSnapshot
impl Send for ExportModuleSnapshot
impl Sync for ExportModuleSnapshot
impl Unpin for ExportModuleSnapshot
impl UnsafeUnpin for ExportModuleSnapshot
impl UnwindSafe for ExportModuleSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more