#[non_exhaustive]pub struct MotorRecord {Show 26 fields
pub motor_id: String,
pub manufacturer: String,
pub manufacturer_abbrev: Option<String>,
pub designation: String,
pub common_name: Option<String>,
pub impulse_class: Option<String>,
pub cert_org: Option<String>,
pub diameter_mm: Option<f64>,
pub length_mm: Option<f64>,
pub motor_type: Option<String>,
pub avg_thrust_n: Option<f64>,
pub max_thrust_n: Option<f64>,
pub total_impulse_ns: Option<f64>,
pub burn_time_s: Option<f64>,
pub data_files: Option<u32>,
pub info_url: Option<String>,
pub total_weight_g: Option<f64>,
pub propellant_weight_g: Option<f64>,
pub delays: Option<String>,
pub delay_adjustable: Option<bool>,
pub case_info: Option<String>,
pub prop_info: Option<String>,
pub sparky: Option<bool>,
pub updated_on: Option<String>,
pub availability: Option<String>,
pub source_url: Option<String>,
}Expand description
One motor’s record. The API returns only the fields that have values, so all but the id, manufacturer and designation are optional. Units are the API’s: newtons, newton-seconds, seconds, millimeters and grams.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.motor_id: StringThrustCurve’s id, 24 hexadecimal digits: what a Download names.
manufacturer: StringThe manufacturer’s full name (Cesaroni Technology).
manufacturer_abbrev: Option<String>Its short name (Cesaroni).
designation: StringThe manufacturer’s designation (3683L851-P).
common_name: Option<String>The common name (L851).
impulse_class: Option<String>The impulse class letter.
cert_org: Option<String>The certifying body’s name.
diameter_mm: Option<f64>Diameter, mm.
length_mm: Option<f64>Length, mm.
motor_type: Option<String>SU (single use), reload or hybrid, as the API writes it.
avg_thrust_n: Option<f64>Average thrust, N.
max_thrust_n: Option<f64>Peak thrust, N.
total_impulse_ns: Option<f64>Total impulse, N·s.
burn_time_s: Option<f64>Burn time, s.
data_files: Option<u32>How many data files (curves) it has.
info_url: Option<String>The certification or manufacturer’s page.
total_weight_g: Option<f64>Loaded weight, g.
propellant_weight_g: Option<f64>Propellant weight, g.
delays: Option<String>The delays offered, as the API writes them (6,10,14, P for a plugged motor).
delay_adjustable: Option<bool>Whether the delay is cut to length by the flier.
case_info: Option<String>The reload’s case (RMS-54/852).
prop_info: Option<String>The propellant’s name (Dark Matter).
sparky: Option<bool>Whether the exhaust throws sparks.
updated_on: Option<String>When the record last changed, YYYY-MM-DD.
availability: Option<String>regular, occasional or OOP (out of production), as the API writes it.
source_url: Option<String>The motor’s page on the site.
Trait Implementations§
Source§impl Clone for MotorRecord
impl Clone for MotorRecord
Source§fn clone(&self) -> MotorRecord
fn clone(&self) -> MotorRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MotorRecord
impl Debug for MotorRecord
Source§impl<'de> Deserialize<'de> for MotorRecord
impl<'de> Deserialize<'de> for MotorRecord
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>,
Source§impl PartialEq for MotorRecord
impl PartialEq for MotorRecord
Source§fn eq(&self, other: &MotorRecord) -> bool
fn eq(&self, other: &MotorRecord) -> bool
self and other values to be equal, and is used by ==.