pub struct SemanticTrustInput {
pub intended_use: SemanticUse,
pub provenance_classes: Vec<ProvenanceClass>,
pub independent_source_families: u16,
pub falsification_evidence: bool,
pub unresolved_unknowns: bool,
}Expand description
Evidence available for semantic trust evaluation.
Fields§
§intended_use: SemanticUseIntended authority surface.
provenance_classes: Vec<ProvenanceClass>Provenance classes represented by the supporting evidence.
independent_source_families: u16Count of independent source families after deduplication by caller.
falsification_evidence: boolWhether explicit falsification/counterexample review is attached.
unresolved_unknowns: boolWhether unresolved semantic unknowns remain.
Implementations§
Source§impl SemanticTrustInput
impl SemanticTrustInput
Sourcepub fn new(intended_use: SemanticUse) -> Self
pub fn new(intended_use: SemanticUse) -> Self
Construct input for one intended use.
Sourcepub fn with_provenance<I>(self, provenance_classes: I) -> Selfwhere
I: IntoIterator<Item = ProvenanceClass>,
pub fn with_provenance<I>(self, provenance_classes: I) -> Selfwhere
I: IntoIterator<Item = ProvenanceClass>,
Attach provenance classes.
Sourcepub const fn with_independent_source_families(self, count: u16) -> Self
pub const fn with_independent_source_families(self, count: u16) -> Self
Attach caller-computed independent source-family count.
Sourcepub const fn with_falsification_evidence(self, present: bool) -> Self
pub const fn with_falsification_evidence(self, present: bool) -> Self
Attach falsification evidence state.
Sourcepub const fn with_unresolved_unknowns(self, present: bool) -> Self
pub const fn with_unresolved_unknowns(self, present: bool) -> Self
Attach unresolved semantic unknown state.
Trait Implementations§
Source§impl Clone for SemanticTrustInput
impl Clone for SemanticTrustInput
Source§fn clone(&self) -> SemanticTrustInput
fn clone(&self) -> SemanticTrustInput
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 SemanticTrustInput
impl Debug for SemanticTrustInput
Source§impl<'de> Deserialize<'de> for SemanticTrustInput
impl<'de> Deserialize<'de> for SemanticTrustInput
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
Source§impl JsonSchema for SemanticTrustInput
impl JsonSchema for SemanticTrustInput
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SemanticTrustInput
impl PartialEq for SemanticTrustInput
Source§fn eq(&self, other: &SemanticTrustInput) -> bool
fn eq(&self, other: &SemanticTrustInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SemanticTrustInput
impl Serialize for SemanticTrustInput
impl Eq for SemanticTrustInput
impl StructuralPartialEq for SemanticTrustInput
Auto Trait Implementations§
impl Freeze for SemanticTrustInput
impl RefUnwindSafe for SemanticTrustInput
impl Send for SemanticTrustInput
impl Sync for SemanticTrustInput
impl Unpin for SemanticTrustInput
impl UnsafeUnpin for SemanticTrustInput
impl UnwindSafe for SemanticTrustInput
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