pub struct DialPlanRequestV1 {
pub correction: AngularCorrection,
pub optic: OpticProfile,
pub range_yd: f64,
pub elevation_cf: f64,
pub windage_cf: f64,
pub preferences: Preferences,
}Expand description
Request for dial_plan_v1: the bridge’s wrapper around plan_corrections’s six
flat parameters (MBA-1348 Task 6’s CLI wraps the same six from --elevation/--windage,
--profile/inline optic flags, --range, and --prefer-hold/--max-hold).
range_yd is in YARDS: plan_corrections itself takes metres, but every other true.*
command except true.wind is imperial on the wire, so this one stays imperial too and
dial_plan_v1 converts at the boundary. elevation_cf/windage_cf default to 1.0
(the neutral value) rather than being required — the CLI’s own --profile-less inline
mode has no tracking-CF flags at all and always passes 1.0, and most callers have no
tall-target correction factor measured yet, so requiring the field here would be a trap.
The optic is supplied INLINE (optic: OpticProfile), never loaded from a named profile:
the CLI’s --profile mode reads a saved profile from disk (load_profile), and that
filesystem dependency must not enter this module — see the module’s own doc comment.
Fields§
§correction: AngularCorrection§optic: OpticProfile§range_yd: f64Range in YARDS for the linear-miss-at-range residual. See the struct doc comment.
elevation_cf: f64§windage_cf: f64§preferences: PreferencesTrait Implementations§
Source§impl Clone for DialPlanRequestV1
impl Clone for DialPlanRequestV1
Source§fn clone(&self) -> DialPlanRequestV1
fn clone(&self) -> DialPlanRequestV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DialPlanRequestV1
impl Debug for DialPlanRequestV1
Source§impl<'de> Deserialize<'de> for DialPlanRequestV1
impl<'de> Deserialize<'de> for DialPlanRequestV1
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>,
Auto Trait Implementations§
impl Freeze for DialPlanRequestV1
impl RefUnwindSafe for DialPlanRequestV1
impl Send for DialPlanRequestV1
impl Sync for DialPlanRequestV1
impl Unpin for DialPlanRequestV1
impl UnwindSafe for DialPlanRequestV1
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,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§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).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.