pub struct EvidenceFact {
pub source: EvidenceSource,
pub kind: String,
pub quality: EvidenceQuality,
pub role: Option<String>,
pub name: Option<String>,
pub parent_role: Option<String>,
pub relationship_hint: Option<EvidenceRelationshipHint>,
pub input_type: Option<String>,
pub required: Option<bool>,
pub read_only: Option<bool>,
pub empty: Option<bool>,
pub geometry_present: Option<bool>,
}Expand description
One redacted, source-labelled fact from browser evidence.
Fields§
§source: EvidenceSource§kind: String§quality: EvidenceQuality§role: Option<String>§name: Option<String>§parent_role: Option<String>Bounded observed accessibility region role for relationship reconciliation.
relationship_hint: Option<EvidenceRelationshipHint>Explicit semantic relationship, when a source can prove one.
input_type: Option<String>§required: Option<bool>§read_only: Option<bool>§empty: Option<bool>§geometry_present: Option<bool>Implementations§
Source§impl EvidenceFact
impl EvidenceFact
Sourcepub fn validate_relationship_hint(
&self,
path: &str,
) -> Result<(), ExtractionContractError>
pub fn validate_relationship_hint( &self, path: &str, ) -> Result<(), ExtractionContractError>
Validate one explicit relationship hint and its required parent role.
Trait Implementations§
Source§impl Clone for EvidenceFact
impl Clone for EvidenceFact
Source§fn clone(&self) -> EvidenceFact
fn clone(&self) -> EvidenceFact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvidenceFact
impl Debug for EvidenceFact
Source§impl<'de> Deserialize<'de> for EvidenceFact
impl<'de> Deserialize<'de> for EvidenceFact
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 EvidenceFact
Source§impl PartialEq for EvidenceFact
impl PartialEq for EvidenceFact
Source§impl Serialize for EvidenceFact
impl Serialize for EvidenceFact
impl StructuralPartialEq for EvidenceFact
Auto Trait Implementations§
impl Freeze for EvidenceFact
impl RefUnwindSafe for EvidenceFact
impl Send for EvidenceFact
impl Sync for EvidenceFact
impl Unpin for EvidenceFact
impl UnsafeUnpin for EvidenceFact
impl UnwindSafe for EvidenceFact
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.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