pub struct DocRegistry;Expand description
Collects and merges all registered fragments into per-endpoint documents.
Implementations§
Source§impl DocRegistry
impl DocRegistry
Sourcepub fn collect() -> Vec<DocEndpoint>
pub fn collect() -> Vec<DocEndpoint>
M1-M5 行为不变:仅返回合并后的端点列表。
Sourcepub fn collect_doc(config: ApidocConfig) -> ApiDoc
pub fn collect_doc(config: ApidocConfig) -> ApiDoc
构建完整文档(端点 + 应用/版本树)。apps 按 ApidocConfig.apps 配置树 挂载注解端点;app 注解引用未配置的 key 时 eprintln 警告并落默认应用(根层)。
Auto Trait Implementations§
impl Freeze for DocRegistry
impl RefUnwindSafe for DocRegistry
impl Send for DocRegistry
impl Sync for DocRegistry
impl Unpin for DocRegistry
impl UnsafeUnpin for DocRegistry
impl UnwindSafe for DocRegistry
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