pub struct UnavailableSourceV1 {
pub axis: InputAxis,
pub sigma: f64,
pub code: UnavailableReasonCodeV1,
pub reason: String,
}Expand description
A declared source error_budget could not evaluate for this request, and why.
See this module’s “Unavailable sources” doc section. An axis appearing here never also
appears in any row’s sources – the two are disjoint by construction. This list is the same
for every row for the three refusals that depend only on axis and base’s OTHER fields
(code other than StepOutOfDomain): those never depend on which ranges were requested.
StepOutOfDomain specifically COULD in principle depend on range (a query near a perturbed
request’s own shrunk domain – see crate::perturbation::derive’s
target_distance_falls_back_to_one_sided_when_queried_near_its_own_max_range), but
error_budget rejects the common, obvious version of that (a range beyond the BASE request’s
own max_range_m) up front instead of letting it reach this list at all – see
error_budget’s “Sources and ranges are validated up front” doc section.
Fields§
§axis: InputAxis§sigma: f64§code: UnavailableReasonCodeV1§reason: StringTrait Implementations§
Source§fn clone(&self) -> UnavailableSourceV1
fn clone(&self) -> UnavailableSourceV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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§
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<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>
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.