pub struct CardRow {
pub range: f64,
pub drop_linear: Option<f64>,
pub drop_adj: Option<f64>,
pub come_up: Option<f64>,
pub wind_linear: Option<f64>,
pub wind_adj: Option<f64>,
pub velocity: Option<f64>,
pub energy: Option<f64>,
pub time: Option<f64>,
pub lead_adj: Option<f64>,
pub wind_columns: Vec<f64>,
}Expand description
One card row. Display-ready values in the surface’s chosen units (exactly what the legacy per-surface structs stored), so rendering is unchanged; range is f64 metres- or-display per the surface’s existing convention — DO NOT re-convert anything.
Serialize (0.33.0 decision-support Plan B Task 12) so adaptive-card -o json can
pretty-print AdaptiveCardReportV1 verbatim rather than hand-rebuilding a json!
object the way the four Task 9 surfaces do – purely additive: none of those four
surfaces serializes a CardRow directly (each still builds its own json!({..}) from
named fields), so this creates no new wire surface for them. Deliberately NOT
Deserialize – nothing reads a CardRow back yet, and adding it speculatively is not
this task’s job.
Fields§
§range: f64§drop_linear: Option<f64>§drop_adj: Option<f64>§come_up: Option<f64>§wind_linear: Option<f64>§wind_adj: Option<f64>§velocity: Option<f64>§energy: Option<f64>§time: Option<f64>§lead_adj: Option<f64>§wind_columns: Vec<f64>wind-card’s per-speed drift columns; empty elsewhere.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CardRow
impl RefUnwindSafe for CardRow
impl Send for CardRow
impl Sync for CardRow
impl Unpin for CardRow
impl UnsafeUnpin for CardRow
impl UnwindSafe for CardRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.