pub struct Finding {
pub path: PathBuf,
pub reserved: bool,
pub has_frontmatter: bool,
pub parseable: bool,
pub has_type: bool,
pub conformant: bool,
pub issues: Vec<String>,
pub fm: Option<Frontmatter>,
}Expand description
A per-file conformance finding for a bundle.
Fields§
§path: PathBufPath relative to the bundle base (or absolute if it could not be made so).
reserved: boolWhether this is a reserved file (index.md/log.md).
has_frontmatter: boolWhether the file opens with a frontmatter fence.
parseable: boolWhether the frontmatter block parses as YAML.
has_type: boolWhether a non-empty type is present (concepts only).
conformant: boolWhether this file satisfies OKF v0.1 conformance for its role.
issues: Vec<String>Human-readable reasons it fails (empty when conformant).
fm: Option<Frontmatter>The parsed frontmatter, when present (for downstream listing).
Trait Implementations§
impl Eq for Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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