pub struct EvidenceSource { /* private fields */ }Expand description
Provenance identifying who produced an evidence record and how.
Implementations§
Source§impl EvidenceSource
impl EvidenceSource
Sourcepub fn new(
component: impl Into<String>,
method: impl Into<String>,
) -> Result<Self, ReasoningModelError>
pub fn new( component: impl Into<String>, method: impl Into<String>, ) -> Result<Self, ReasoningModelError>
Creates a source from a component and observation method.
Sourcepub fn with_correlation_id(
self,
correlation_id: impl Into<String>,
) -> Result<Self, ReasoningModelError>
pub fn with_correlation_id( self, correlation_id: impl Into<String>, ) -> Result<Self, ReasoningModelError>
Associates this source with a scan or request correlation ID.
Sourcepub fn correlation_id(&self) -> Option<&str>
pub fn correlation_id(&self) -> Option<&str>
Returns the optional scan or request correlation ID.
Trait Implementations§
Source§impl Clone for EvidenceSource
impl Clone for EvidenceSource
Source§fn clone(&self) -> EvidenceSource
fn clone(&self) -> EvidenceSource
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 EvidenceSource
impl Debug for EvidenceSource
Source§impl<'de> Deserialize<'de> for EvidenceSource
impl<'de> Deserialize<'de> for EvidenceSource
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 EvidenceSource
Source§impl PartialEq for EvidenceSource
impl PartialEq for EvidenceSource
Source§impl Serialize for EvidenceSource
impl Serialize 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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.