pub struct ApiSurfaceReport {
pub total_items: usize,
pub public_items: usize,
pub internal_items: usize,
pub public_ratio: f64,
pub documented_ratio: f64,
pub by_language: BTreeMap<String, LangApiSurface>,
pub by_module: Vec<ModuleApiRow>,
pub top_exporters: Vec<ApiExportItem>,
}Expand description
Public API surface analysis report.
Computes public export ratios per language and module by scanning source files for exported symbols (pub fn, export function, etc.).
Fields§
§total_items: usizeTotal items discovered across all languages.
public_items: usizeItems with public visibility.
internal_items: usizeItems with internal/private visibility.
public_ratio: f64Ratio of public to total items (0.0-1.0).
documented_ratio: f64Ratio of documented public items (0.0-1.0).
by_language: BTreeMap<String, LangApiSurface>Per-language breakdown.
by_module: Vec<ModuleApiRow>Per-module breakdown.
top_exporters: Vec<ApiExportItem>Top exporters (files with most public items).
Trait Implementations§
Source§impl Clone for ApiSurfaceReport
impl Clone for ApiSurfaceReport
Source§fn clone(&self) -> ApiSurfaceReport
fn clone(&self) -> ApiSurfaceReport
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 ApiSurfaceReport
impl Debug for ApiSurfaceReport
Source§impl<'de> Deserialize<'de> for ApiSurfaceReport
impl<'de> Deserialize<'de> for ApiSurfaceReport
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 ApiSurfaceReport
impl RefUnwindSafe for ApiSurfaceReport
impl Send for ApiSurfaceReport
impl Sync for ApiSurfaceReport
impl Unpin for ApiSurfaceReport
impl UnsafeUnpin for ApiSurfaceReport
impl UnwindSafe for ApiSurfaceReport
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