pub struct AuthoredDocs {
pub layer: AuthoredLayer,
pub site: Vec<SitePage>,
}Expand description
The authored layer plus the site pages — everything one tree’s classify pass yields.
A wrapper rather than a fourth field on AuthoredLayer, because that struct
is destructured exhaustively by its callers and a new field is a breaking
change for every one of them. Wrapping lets a caller adopt site pages when it
is ready to render and gate them, and lets the rest keep compiling against
exactly the layer they already handle — which matters here because the
classification below must stay the one copy of the rule either way.
Fields§
§layer: AuthoredLayerADRs, blueprints, annotations, and anything malformed — including a site page that declared itself published and then failed to parse.
site: Vec<SitePage>Documents that declared themselves published (site-page: frontmatter).
Trait Implementations§
Source§impl Debug for AuthoredDocs
impl Debug for AuthoredDocs
Source§impl Default for AuthoredDocs
impl Default for AuthoredDocs
Source§fn default() -> AuthoredDocs
fn default() -> AuthoredDocs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthoredDocs
impl RefUnwindSafe for AuthoredDocs
impl Send for AuthoredDocs
impl Sync for AuthoredDocs
impl Unpin for AuthoredDocs
impl UnsafeUnpin for AuthoredDocs
impl UnwindSafe for AuthoredDocs
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