pub struct TransportQuery {
pub response: ResponseQuery,
pub source_population: Arc<str>,
pub target_population: Arc<str>,
pub source_experiments: Arc<[VariableId]>,
}Expand description
Transport a response from one explicitly named population to another.
Fields§
§response: ResponseQueryResponse functional requested in the target population.
source_population: Arc<str>Source population key.
target_population: Arc<str>Target population key.
source_experiments: Arc<[VariableId]>Variables for which source experiments are available.
Implementations§
Source§impl TransportQuery
impl TransportQuery
Sourcepub fn new(
response: ResponseQuery,
source_population: impl Into<Arc<str>>,
target_population: impl Into<Arc<str>>,
source_experiments: impl Into<Arc<[VariableId]>>,
) -> Self
pub fn new( response: ResponseQuery, source_population: impl Into<Arc<str>>, target_population: impl Into<Arc<str>>, source_experiments: impl Into<Arc<[VariableId]>>, ) -> Self
Construct a single-source transport query.
Sourcepub fn validate(&self) -> Result<(), QueryError>
pub fn validate(&self) -> Result<(), QueryError>
Validate population keys, response semantics, and experiment uniqueness.
§Errors
QueryError::InvalidTransport or the nested response validation error.
Trait Implementations§
Source§impl Clone for TransportQuery
impl Clone for TransportQuery
Source§fn clone(&self) -> TransportQuery
fn clone(&self) -> TransportQuery
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 TransportQuery
impl Debug for TransportQuery
Source§impl From<TransportQuery> for CausalQuery
impl From<TransportQuery> for CausalQuery
Source§fn from(query: TransportQuery) -> Self
fn from(query: TransportQuery) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransportQuery
impl PartialEq for TransportQuery
impl StructuralPartialEq for TransportQuery
Auto Trait Implementations§
impl Freeze for TransportQuery
impl RefUnwindSafe for TransportQuery
impl Send for TransportQuery
impl Sync for TransportQuery
impl Unpin for TransportQuery
impl UnsafeUnpin for TransportQuery
impl UnwindSafe for TransportQuery
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