pub struct ProfileEvidence {
pub kind: ProfileEvidenceKind,
pub field: Option<String>,
pub value: String,
pub source: EvidenceSource,
}Expand description
A normalized fact observed on a profile or profile-like endpoint.
Fields§
§kind: ProfileEvidenceKindWhat kind of profile fact this is.
field: Option<String>Original extractor/enrichment field name, when one exists.
value: StringCleaned observed value.
source: EvidenceSourceWhere this fact came from.
Implementations§
Source§impl ProfileEvidence
impl ProfileEvidence
Sourcepub fn from_enrichment(site: &str, url: &str, field: &str, value: &str) -> Self
pub fn from_enrichment(site: &str, url: &str, field: &str, value: &str) -> Self
Build normalized evidence from a legacy enrichment field.
Sourcepub fn from_enrichment_with_source(
site: &str,
url: &str,
field: &str,
value: &str,
observed_at_ms: Option<u64>,
access_path: Option<EvidenceAccessPath>,
) -> Self
pub fn from_enrichment_with_source( site: &str, url: &str, field: &str, value: &str, observed_at_ms: Option<u64>, access_path: Option<EvidenceAccessPath>, ) -> Self
Build normalized evidence from a live enrichment field with optional observation/access metadata.
Sourcepub fn from_signal_username(
site: &str,
url: &str,
username: &str,
observed_at_ms: Option<u64>,
access_path: Option<EvidenceAccessPath>,
) -> Self
pub fn from_signal_username( site: &str, url: &str, username: &str, observed_at_ms: Option<u64>, access_path: Option<EvidenceAccessPath>, ) -> Self
Build exact username evidence from a signal that matched the concrete probed username.
Sourcepub fn from_avatar_hash(
site: &str,
url: &str,
hash: &str,
observed_at_ms: Option<u64>,
access_path: Option<EvidenceAccessPath>,
) -> Self
pub fn from_avatar_hash( site: &str, url: &str, hash: &str, observed_at_ms: Option<u64>, access_path: Option<EvidenceAccessPath>, ) -> Self
Build privacy-safe avatar hash evidence derived from a previously extracted avatar URL.
Trait Implementations§
Source§impl Clone for ProfileEvidence
impl Clone for ProfileEvidence
Source§fn clone(&self) -> ProfileEvidence
fn clone(&self) -> ProfileEvidence
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 ProfileEvidence
impl Debug for ProfileEvidence
Source§impl<'de> Deserialize<'de> for ProfileEvidence
impl<'de> Deserialize<'de> for ProfileEvidence
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 ProfileEvidence
Source§impl From<&ProfileEvidence> for ReportEvidence
impl From<&ProfileEvidence> for ReportEvidence
Source§fn from(evidence: &ProfileEvidence) -> Self
fn from(evidence: &ProfileEvidence) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProfileEvidence
impl PartialEq for ProfileEvidence
Source§fn eq(&self, other: &ProfileEvidence) -> bool
fn eq(&self, other: &ProfileEvidence) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProfileEvidence
impl Serialize for ProfileEvidence
impl StructuralPartialEq for ProfileEvidence
Auto Trait Implementations§
impl Freeze for ProfileEvidence
impl RefUnwindSafe for ProfileEvidence
impl Send for ProfileEvidence
impl Sync for ProfileEvidence
impl Unpin for ProfileEvidence
impl UnsafeUnpin for ProfileEvidence
impl UnwindSafe for ProfileEvidence
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§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.