pub struct PortableContribution {
pub field: String,
pub source_entity: String,
pub target: String,
pub label: String,
pub resolution: String,
pub value: Option<PortableValue>,
pub risk_state: Option<String>,
pub policy_version: Option<String>,
}Expand description
One source entity’s contribution — the join’s atom, portable.
Fields§
§field: StringThe record field the reference lives under.
source_entity: StringThe stable source-entity provenance spelling, <kind>:<id>.
target: StringThe recorded target.
label: StringThe derived display label.
resolution: StringHow the reference resolved.
value: Option<PortableValue>The owning service’s own value, verbatim: the counts that service returned.
None when the source has no value (a milestone) or did not resolve. Never
a cross-source aggregate.
risk_state: Option<String>The shared health policy’s typed risk state for the source’s scope.
policy_version: Option<String>The policy version that produced the value/risk, when present.
Trait Implementations§
Source§impl Clone for PortableContribution
impl Clone for PortableContribution
Source§impl Debug for PortableContribution
impl Debug for PortableContribution
Source§impl<'de> Deserialize<'de> for PortableContribution
impl<'de> Deserialize<'de> for PortableContribution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PortableContribution
Source§impl PartialEq for PortableContribution
impl PartialEq for PortableContribution
Source§impl Serialize for PortableContribution
impl Serialize for PortableContribution
impl StructuralPartialEq for PortableContribution
Auto Trait Implementations§
impl Freeze for PortableContribution
impl RefUnwindSafe for PortableContribution
impl Send for PortableContribution
impl Sync for PortableContribution
impl Unpin for PortableContribution
impl UnsafeUnpin for PortableContribution
impl UnwindSafe for PortableContribution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more