pub struct RenderInputs<'a> {
pub artifact: &'a Value,
pub slug: &'a str,
pub slugpath: &'a str,
pub created: &'a str,
pub version: u64,
pub verification: Option<&'a Value>,
}Expand description
The pre-resolved, caller-supplied inputs render_artifact needs
beyond the artifact JSON itself.
Path/version arithmetic the original script does against the live
filesystem (resolving $OUT’s repo-relative slug path, reading a
prior version to increment) stays a CLI-layer concern, not a
pure-rendering one.
Fields§
§artifact: &'a ValueThe parsed artifact.json document. Its .namespace field (or the
"harness/report" default) is the report/blog/book namespace —
derived internally, not a separate input.
slug: &'a strThe output file’s slug (its basename, minus .md).
slugpath: &'a strThe output file’s repo-root-relative path (for the slug:
frontmatter field astro-rehype-relative-markdown-links needs).
created: &'a strThe RFC 3339 created timestamp.
version: u64This revision’s version number (prior version + 1, or 1).
verification: Option<&'a Value>A falsification verdict (extensions.harness.verification) to fold
into the report channel’s frontmatter. Required for report;
ignored for blog/book.
Auto Trait Implementations§
impl<'a> Freeze for RenderInputs<'a>
impl<'a> RefUnwindSafe for RenderInputs<'a>
impl<'a> Send for RenderInputs<'a>
impl<'a> Sync for RenderInputs<'a>
impl<'a> Unpin for RenderInputs<'a>
impl<'a> UnsafeUnpin for RenderInputs<'a>
impl<'a> UnwindSafe for RenderInputs<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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