Skip to main content

AdaptiveCardReportV1

Struct AdaptiveCardReportV1 

Source
pub struct AdaptiveCardReportV1 {
    pub schema_version: u32,
    pub method: String,
    pub assumptions: Vec<String>,
    pub rows: Vec<CardRow>,
    pub budget_met: bool,
    pub rows_capped: bool,
    pub worst_elevation_error: f64,
    pub worst_windage_error: f64,
    pub worst_error_range_m: f64,
    pub verification_grid_step_m: f64,
}
Expand description

What an adaptive card is, plus what its own numbers were measured to be worth.

The error fields are MEASURED by a dense verification pass over the declared grid after the rows are final – they are not the loop’s running estimate, and budget_met is recomputed from that pass rather than inherited from the insertion loop.

Serialize (Task 12): adaptive-card -o json prints this struct pretty-printed verbatim, field names unchanged – unlike the four Task 9 surfaces, there is no legacy hand-built json! shape to preserve here, so a plain derive IS the wire format.

Fields§

§schema_version: u32§method: String

Stable identifier for how these rows were chosen.

§assumptions: Vec<String>

Exactly five entries; see adaptive_card. Index-stable: a consumer may quote assumptions[3] and mean the half-click floor.

§rows: Vec<CardRow>

Printed rows, ascending by range (meters). Dial values are quantized when clicks were supplied.

§budget_met: bool§rows_capped: bool

The row cap stopped refinement while violations remained.

§worst_elevation_error: f64

Worst measured elevation error over the audited points, in the card’s printed unit.

§worst_windage_error: f64

Worst measured windage error over the audited points, in the card’s printed unit.

§worst_error_range_m: f64

Range of the single worst point by budget-normalized excess (ties to the lowest range). The two per-axis maxima above may each occur elsewhere, which is exactly why they are reported as their own scalars.

§verification_grid_step_m: f64

Spacing of the declared verification grid, meters. The honesty claim extends to this grid and no further.

Trait Implementations§

Source§

impl Clone for AdaptiveCardReportV1

Source§

fn clone(&self) -> AdaptiveCardReportV1

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AdaptiveCardReportV1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for AdaptiveCardReportV1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.