pub struct RenderedTemplate {
pub body: String,
pub digest: String,
pub answers: BTreeMap<String, Value>,
}Expand description
A rendered template: what onetaskgraph template render answers with.
Fields§
§body: StringThe rendered text.
digest: StringThe digest of every file of the chain these answers render, in first-load order:
sha256: and 64 lowercase hex digits. That is the order the render first read each
file, a template an expression named included, then any file of the chain it did not
read.
answers: BTreeMap<String, Value>Every declared variable and the value it rendered with — an answer, a default, or
null for an optional variable given neither.
Trait Implementations§
Source§impl Clone for RenderedTemplate
impl Clone for RenderedTemplate
Source§impl Debug for RenderedTemplate
impl Debug for RenderedTemplate
Source§impl JsonSchema for RenderedTemplate
impl JsonSchema for RenderedTemplate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RenderedTemplate
impl PartialEq for RenderedTemplate
Source§impl Serialize for RenderedTemplate
impl Serialize for RenderedTemplate
impl StructuralPartialEq for RenderedTemplate
Auto Trait Implementations§
impl Freeze for RenderedTemplate
impl RefUnwindSafe for RenderedTemplate
impl Send for RenderedTemplate
impl Sync for RenderedTemplate
impl Unpin for RenderedTemplate
impl UnsafeUnpin for RenderedTemplate
impl UnwindSafe for RenderedTemplate
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