pub struct StoredCardRowV1 {
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 wind_columns: Vec<f64>,
}Expand description
One stored row (see CardRowV1, which this mirrors). Only range is required; a
column the stored card did not carry stays None and prints as an em-dash rather than a
fabricated zero. Unknown fields are ignored, for the reason StoredCardResponseV1
gives.
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>Time of flight, seconds. The Lead column of a reprint is derived from this — pure arithmetic on a number the stored card already carries, not a new trajectory. A row without it prints an em-dash for Lead.
wind_columns: Vec<f64>Trait Implementations§
Source§impl Clone for StoredCardRowV1
impl Clone for StoredCardRowV1
Source§fn clone(&self) -> StoredCardRowV1
fn clone(&self) -> StoredCardRowV1
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 moreSource§impl Debug for StoredCardRowV1
impl Debug for StoredCardRowV1
Source§impl Default for StoredCardRowV1
impl Default for StoredCardRowV1
Source§fn default() -> StoredCardRowV1
fn default() -> StoredCardRowV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoredCardRowV1
impl<'de> Deserialize<'de> for StoredCardRowV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StoredCardRowV1
impl PartialEq for StoredCardRowV1
impl StructuralPartialEq for StoredCardRowV1
Auto Trait Implementations§
impl Freeze for StoredCardRowV1
impl RefUnwindSafe for StoredCardRowV1
impl Send for StoredCardRowV1
impl Sync for StoredCardRowV1
impl Unpin for StoredCardRowV1
impl UnsafeUnpin for StoredCardRowV1
impl UnwindSafe for StoredCardRowV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.