pub struct ExposurePlan {
pub schema_version: String,
pub id: String,
pub case_id: String,
pub covariance: ExposureCovariance,
pub exposures: Vec<Exposure>,
}Expand description
A set of weighted exposures accumulated onto one voxel grid.
Fields§
§schema_version: String§id: String§case_id: StringCase identity carried by the accumulated bundle. Exposures may come from runs with different case ids (for example different field directions); the plan’s case id is the accumulated scenario’s.
covariance: ExposureCovariance§exposures: Vec<Exposure>Implementations§
Source§impl ExposurePlan
impl ExposurePlan
Sourcepub fn validate_diagnostics(&self) -> Vec<ExposurePlanError>
pub fn validate_diagnostics(&self) -> Vec<ExposurePlanError>
Collect every detectable problem with the plan rather than stopping at the first, for user-facing diagnostics on malformed plans. Semantic errors that need cross-field context (duplicate exposure names) are reported alongside field-level errors.
pub fn validate(&self) -> Result<(), ExposurePlanError>
Trait Implementations§
Source§impl Clone for ExposurePlan
impl Clone for ExposurePlan
Source§fn clone(&self) -> ExposurePlan
fn clone(&self) -> ExposurePlan
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 ExposurePlan
impl Debug for ExposurePlan
Source§impl<'de> Deserialize<'de> for ExposurePlan
impl<'de> Deserialize<'de> for ExposurePlan
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 ExposurePlan
impl PartialEq for ExposurePlan
Source§impl Serialize for ExposurePlan
impl Serialize for ExposurePlan
impl StructuralPartialEq for ExposurePlan
Auto Trait Implementations§
impl Freeze for ExposurePlan
impl RefUnwindSafe for ExposurePlan
impl Send for ExposurePlan
impl Sync for ExposurePlan
impl Unpin for ExposurePlan
impl UnsafeUnpin for ExposurePlan
impl UnwindSafe for ExposurePlan
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