pub struct TrueVelocityRequest {Show 14 fields
pub measured_drop_mil: f64,
pub range_yd: f64,
pub bc: f64,
pub drag_model: String,
pub weight_gr: f64,
pub caliber: f64,
pub zero_range_yd: Option<f64>,
pub chrono_velocity_fps: Option<f64>,
pub altitude_ft: Option<f64>,
pub temperature_f: Option<f64>,
pub pressure_inhg: Option<f64>,
pub humidity: Option<f64>,
pub sight_height_in: Option<f64>,
pub use_bc_enhancement: Option<bool>,
}Expand description
Request structure for velocity truing via Flask API
Fields§
§measured_drop_mil: f64Measured drop in MILs at the target range
range_yd: f64Range at which drop was measured (yards)
bc: f64Ballistic coefficient
drag_model: StringDrag model (“G1” or “G7”)
weight_gr: f64Bullet weight in grains
caliber: f64Bullet caliber/diameter in inches
zero_range_yd: Option<f64>Zero range in yards (default: 100)
chrono_velocity_fps: Option<f64>Chronograph velocity in fps (optional, for comparison)
altitude_ft: Option<f64>Altitude in feet (default: 0)
temperature_f: Option<f64>Temperature in Fahrenheit (default: 59)
pressure_inhg: Option<f64>Barometric pressure in inHg (default: 29.92)
humidity: Option<f64>Humidity percentage (default: 50)
sight_height_in: Option<f64>Sight height in inches (default: 2.0)
use_bc_enhancement: Option<bool>Enable BC enhancement (default: true)
Trait Implementations§
Source§impl Clone for TrueVelocityRequest
impl Clone for TrueVelocityRequest
Source§fn clone(&self) -> TrueVelocityRequest
fn clone(&self) -> TrueVelocityRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 TrueVelocityRequest
impl Debug for TrueVelocityRequest
Auto Trait Implementations§
impl Freeze for TrueVelocityRequest
impl RefUnwindSafe for TrueVelocityRequest
impl Send for TrueVelocityRequest
impl Sync for TrueVelocityRequest
impl Unpin for TrueVelocityRequest
impl UnwindSafe for TrueVelocityRequest
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,
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.