pub struct ReportContract {
pub schema_name: &'static str,
pub machine_output_kind: MachineOutputKind,
pub output_discriminator: Option<OutputDiscriminator>,
pub schema: fn() -> Value,
}Expand description
Stable contract metadata carried beside a typed Heddle report.
Fields§
§schema_name: &'static strStable schema identifier for this report shape.
machine_output_kind: MachineOutputKindMachine-readable stream/container kind emitted for this report.
output_discriminator: Option<OutputDiscriminator>Stable output discriminator emitted in the report payload, when the report shape has one. Legacy discriminator-less reports keep this absent so the contract does not force a JSON shape change.
schema: fn() -> ValueGenerate the JSON Schema for this report shape.
Trait Implementations§
Source§impl Clone for ReportContract
impl Clone for ReportContract
Source§fn clone(&self) -> ReportContract
fn clone(&self) -> ReportContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReportContract
Auto Trait Implementations§
impl Freeze for ReportContract
impl RefUnwindSafe for ReportContract
impl Send for ReportContract
impl Sync for ReportContract
impl Unpin for ReportContract
impl UnsafeUnpin for ReportContract
impl UnwindSafe for ReportContract
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