#[repr(i32)]pub enum IndicatorVerificationState {
Unspecified = 0,
Unverified = 1,
Verified = 2,
}Expand description
Whether an indicator has ever been corroborated by evidence outside of the declaration that created it.
Recording readings is not part of this service. An indicator becomes verified when an IndicatorReading is stored against it, which the platform does from campaign outcomes; no RPC defined here can move the state, so every indicator created or updated via ObjectivesService stays UNVERIFIED.
Variants§
Unspecified = 0
Unverified = 1
No corroborating reading has been recorded. This is the state of every newly created indicator, including one whose wording was suggested by a model: a suggestion is not evidence, and callers must not present an unverified indicator as one that is known to track its objective.
Verified = 2
At least one reading from the declared evidence source has been recorded against this indicator. The state says evidence exists, not that the evidence was favourable — an indicator corroborated by a negative reading is verified all the same.
Implementations§
Source§impl IndicatorVerificationState
impl IndicatorVerificationState
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of IndicatorVerificationState.
Sourcepub fn from_i32(value: i32) -> Option<IndicatorVerificationState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<IndicatorVerificationState>
Use the TryFrom<i32> implementation instead
Converts an i32 to a IndicatorVerificationState, or None if value is not a valid variant.
Source§impl IndicatorVerificationState
impl IndicatorVerificationState
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for IndicatorVerificationState
impl Clone for IndicatorVerificationState
Source§fn clone(&self) -> IndicatorVerificationState
fn clone(&self) -> IndicatorVerificationState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for IndicatorVerificationState
Source§impl Debug for IndicatorVerificationState
impl Debug for IndicatorVerificationState
Source§impl Default for IndicatorVerificationState
impl Default for IndicatorVerificationState
Source§fn default() -> IndicatorVerificationState
fn default() -> IndicatorVerificationState
impl Eq for IndicatorVerificationState
Source§impl From<IndicatorVerificationState> for i32
impl From<IndicatorVerificationState> for i32
Source§fn from(value: IndicatorVerificationState) -> i32
fn from(value: IndicatorVerificationState) -> i32
Source§impl Hash for IndicatorVerificationState
impl Hash for IndicatorVerificationState
Source§impl Ord for IndicatorVerificationState
impl Ord for IndicatorVerificationState
Source§fn cmp(&self, other: &IndicatorVerificationState) -> Ordering
fn cmp(&self, other: &IndicatorVerificationState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for IndicatorVerificationState
impl PartialOrd for IndicatorVerificationState
impl StructuralPartialEq for IndicatorVerificationState
Source§impl TryFrom<i32> for IndicatorVerificationState
impl TryFrom<i32> for IndicatorVerificationState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<IndicatorVerificationState, UnknownEnumValue>
fn try_from(value: i32) -> Result<IndicatorVerificationState, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for IndicatorVerificationState
impl RefUnwindSafe for IndicatorVerificationState
impl Send for IndicatorVerificationState
impl Sync for IndicatorVerificationState
impl Unpin for IndicatorVerificationState
impl UnsafeUnpin for IndicatorVerificationState
impl UnwindSafe for IndicatorVerificationState
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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