pub struct EvidenceSource {
pub kind: i32,
pub reporter_is_subject: bool,
pub coverage: i32,
pub third_party_verifiable: bool,
pub detail: Option<Detail>,
}Expand description
Where an indicator’s readings come from, plus the structural facts that follow from that choice. The facts are descriptive, not a score: they state what the configuration implies so the reader can judge it, and are never combined into a single rating.
Fields§
§kind: i32Which adapter produces the readings.
reporter_is_subject: boolTrue when whoever reports the reading is also whoever the reading is about. Self-reported readings can be negotiated rather than produced.
coverage: i32Whether the source observes the whole population or a sample.
third_party_verifiable: boolTrue when a party other than the reporter could check the reading against an independent record.
detail: Option<Detail>Adapter-specific configuration. Must match kind.
Implementations§
Source§impl EvidenceSource
impl EvidenceSource
Sourcepub fn kind(&self) -> EvidenceSourceKind
pub fn kind(&self) -> EvidenceSourceKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: EvidenceSourceKind)
pub fn set_kind(&mut self, value: EvidenceSourceKind)
Sets kind to the provided enum value.
Sourcepub fn coverage(&self) -> EvidenceCoverage
pub fn coverage(&self) -> EvidenceCoverage
Returns the enum value of coverage, or the default if the field is set to an invalid enum value.
Sourcepub fn set_coverage(&mut self, value: EvidenceCoverage)
pub fn set_coverage(&mut self, value: EvidenceCoverage)
Sets coverage to the provided enum value.
Trait Implementations§
Source§impl Clone for EvidenceSource
impl Clone for EvidenceSource
Source§fn clone(&self) -> EvidenceSource
fn clone(&self) -> EvidenceSource
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 EvidenceSource
impl Debug for EvidenceSource
Source§impl Default for EvidenceSource
impl Default for EvidenceSource
impl Eq for EvidenceSource
Source§impl Hash for EvidenceSource
impl Hash for EvidenceSource
Source§impl Message for EvidenceSource
impl Message for EvidenceSource
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 EvidenceSource
impl PartialEq for EvidenceSource
impl StructuralPartialEq for EvidenceSource
Auto Trait Implementations§
impl Freeze for EvidenceSource
impl RefUnwindSafe for EvidenceSource
impl Send for EvidenceSource
impl Sync for EvidenceSource
impl Unpin for EvidenceSource
impl UnsafeUnpin for EvidenceSource
impl UnwindSafe for EvidenceSource
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