pub struct ResponseQuery {
pub functional: ResponseFunctional,
pub target_population: TargetPopulation,
pub observation: ObservationSpec,
pub observation_assumptions: Arc<[ObservationAssumption]>,
}Expand description
Complete continuous-response query.
Fields§
§functional: ResponseFunctionalRequested functional.
target_population: TargetPopulationTarget population.
observation: ObservationSpecObservation mechanism (complete by default).
observation_assumptions: Arc<[ObservationAssumption]>Caller-declared observation assumptions. Empty means none.
Implementations§
Source§impl ResponseQuery
impl ResponseQuery
Sourcepub fn new(functional: ResponseFunctional) -> Self
pub fn new(functional: ResponseFunctional) -> Self
Construct a completely observed response query.
Sourcepub fn with_observation(
self,
observation: ObservationSpec,
assumptions: impl Into<Arc<[ObservationAssumption]>>,
) -> Self
pub fn with_observation( self, observation: ObservationSpec, assumptions: impl Into<Arc<[ObservationAssumption]>>, ) -> Self
Attach an explicit observation process and its assumptions.
Sourcepub fn with_target_population(self, target: TargetPopulation) -> Self
pub fn with_target_population(self, target: TargetPopulation) -> Self
Set the target population.
Sourcepub fn validate(&self) -> Result<(), QueryError>
pub fn validate(&self) -> Result<(), QueryError>
Validate dimensions, finite values, scales, and intervention targets.
§Errors
QueryError when variables, dimensions, values, or observation semantics are invalid.
Trait Implementations§
Source§impl Clone for ResponseQuery
impl Clone for ResponseQuery
Source§fn clone(&self) -> ResponseQuery
fn clone(&self) -> ResponseQuery
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 ResponseQuery
impl Debug for ResponseQuery
Source§impl From<ResponseQuery> for CausalQuery
impl From<ResponseQuery> for CausalQuery
Source§fn from(query: ResponseQuery) -> Self
fn from(query: ResponseQuery) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponseQuery
impl PartialEq for ResponseQuery
impl StructuralPartialEq for ResponseQuery
Auto Trait Implementations§
impl Freeze for ResponseQuery
impl RefUnwindSafe for ResponseQuery
impl Send for ResponseQuery
impl Sync for ResponseQuery
impl Unpin for ResponseQuery
impl UnsafeUnpin for ResponseQuery
impl UnwindSafe for ResponseQuery
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