pub struct VerificationRun {Show 13 fields
pub id: String,
pub campaign_id: String,
pub indicator_id: String,
pub objective_id: String,
pub state: i32,
pub verification_campaign_id: String,
pub scheduled_for: Option<Timestamp>,
pub window_start: Option<Timestamp>,
pub window_end: Option<Timestamp>,
pub verifier_count: i32,
pub reading_id: String,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
}Expand description
A scheduled follow-up that asks whether the behaviour a campaign was trying to change actually changed, and lands the answer on an indicator.
The question is asked about an organizational unit, never about a named person. A run therefore never produces a third party’s judgement of an individual, which is a category of data this contract does not carry.
Fields§
§id: StringUnique identifier for the run.
campaign_id: StringCampaign whose effect is being verified.
indicator_id: StringIndicator the answers are recorded against.
objective_id: StringObjective the indicator hangs from, carried here so a run can be listed and read at the objective level without resolving the indicator first.
state: i32Lifecycle state.
verification_campaign_id: StringThe follow-up campaign sent to the verifiers. Empty while the run is VERIFICATION_RUN_STATE_PENDING, because it does not exist yet.
scheduled_for: Option<Timestamp>When the follow-up is due, derived from the wait declared on the indicator’s evidence source. Known from the moment the run is created.
window_start: Option<Timestamp>When the follow-up actually went out and collection opened. Unset while the run is pending.
window_end: Option<Timestamp>When collection closed. Unset until the run is complete.
verifier_count: i32How many verifiers the derivation resolved to, after dropping anyone who is inside the audience being measured and after any unit too small to be asked about on its own was folded into the level above it.
reading_id: StringReading this run produced. Empty until the run completes, and empty on a completed run that produced none — a run nobody answered leaves the indicator without evidence rather than with a zero.
created_at: Option<Timestamp>Timestamp when the run was created.
updated_at: Option<Timestamp>Timestamp when the run was last updated.
Implementations§
Source§impl VerificationRun
impl VerificationRun
Sourcepub fn state(&self) -> VerificationRunState
pub fn state(&self) -> VerificationRunState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: VerificationRunState)
pub fn set_state(&mut self, value: VerificationRunState)
Sets state to the provided enum value.
Trait Implementations§
Source§impl Clone for VerificationRun
impl Clone for VerificationRun
Source§fn clone(&self) -> VerificationRun
fn clone(&self) -> VerificationRun
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationRun
impl Debug for VerificationRun
Source§impl Default for VerificationRun
impl Default for VerificationRun
impl Eq for VerificationRun
Source§impl Hash for VerificationRun
impl Hash for VerificationRun
Source§impl Message for VerificationRun
impl Message for VerificationRun
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for VerificationRun
impl PartialEq for VerificationRun
impl StructuralPartialEq for VerificationRun
Auto Trait Implementations§
impl Freeze for VerificationRun
impl RefUnwindSafe for VerificationRun
impl Send for VerificationRun
impl Sync for VerificationRun
impl Unpin for VerificationRun
impl UnsafeUnpin for VerificationRun
impl UnwindSafe for VerificationRun
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request