Struct ErrorOutput Copy item path Source pub struct ErrorOutput {
pub error: bool ,
pub message: String ,
pub exit_code: u8 ,
pub code: Option <String >,
pub help: Option <String >,
}Expand description Structured JSON error emitted on stdout when --format json is active and a
command fails. It carries no kind discriminator: it is distinguished from
the kind-tagged success envelopes by the required error: true field, and is
a document-root branch alongside FallowOutput and CodeClimateOutput in
docs/output-schema.json. Agents that pass --format json and observe a
non-zero exit code parse this shape from stdout.
Always true. The discriminator that separates an error document from a
success envelope (which instead carries a kind).
Human-readable error message.
The process exit code the CLI returns alongside this document.
Stable machine-readable code such as FALLOW_INVALID_COVERAGE_PATH,
when the failure has one. Present so an agent can branch on the reason
without pattern-matching the human message.
Remediation hint for the caller, when the failure has one.
Build an error envelope for the given message and exit code.
Attach a stable machine-readable code.
Attach a remediation hint.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Converts to this type from the input type within the given allocator.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
Converts this type into the (usually inferred) input type within the given allocator.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more Mutably dereferences the given pointer.
Read more Drops the object pointed to by the given pointer.
Read more The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.