pub struct ArtifactOutput {
pub bytes: Vec<u8>,
pub suggested_destination: Option<PathBuf>,
pub stdout_allowed: bool,
pub report: Option<Value>,
}Expand description
Artifact bytes and report as post-output hooks see them.
Post-output hooks observe this before the framework selects a destination and performs the final write, so a hook can still transform the bytes or enrich the report. Hooks deliberately cannot perform the write themselves: the framework owns it, which is what keeps the success report truthful and the failure path single.
The fields are public so hooks can mutate them, mirroring TextOutput.
Fields§
§bytes: Vec<u8>The artifact bytes, byte-for-byte as the handler produced them.
suggested_destination: Option<PathBuf>The destination the application suggested, if it opted in. Some
authorizes the framework to write there absent an explicit override.
stdout_allowed: boolWhether the application authorized the stdout fallback.
report: Option<Value>The serialized application-owned report, after post-dispatch hooks.
Trait Implementations§
Source§impl Clone for ArtifactOutput
impl Clone for ArtifactOutput
Source§fn clone(&self) -> ArtifactOutput
fn clone(&self) -> ArtifactOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more