pub struct MapRecord {
pub finding_id: String,
pub entity_type: Option<String>,
pub resolved_ontology: Option<String>,
pub basis: Basis,
pub valid: bool,
}Expand description
One ontology-map.json record: the result of resolving a single
finding, whether or not it classified cleanly.
Fields§
§finding_id: StringThe finding’s id.
entity_type: Option<String>The finding’s entity type, if one was identified (even if unresolved/ambiguous).
resolved_ontology: Option<String>The resolved ontology, as "{id}@{version}", if classification
succeeded.
basis: BasisHow this record’s classification was reached.
valid: boolWhether the finding’s entity payload validated against the
resolved type’s schema. false for every basis that never reached
validation (untyped/unresolved/ambiguous).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapRecord
impl<'de> Deserialize<'de> for MapRecord
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 MapRecord
impl StructuralPartialEq for MapRecord
Auto Trait Implementations§
impl Freeze for MapRecord
impl RefUnwindSafe for MapRecord
impl Send for MapRecord
impl Sync for MapRecord
impl Unpin for MapRecord
impl UnsafeUnpin for MapRecord
impl UnwindSafe for MapRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.impl<T> ErasedDestructor for Twhere
T: 'static,
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> 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