pub struct TrustMetadata {
pub verification_level: Option<u8>,
pub reputation_score: Option<f32>,
pub review_count: Option<u32>,
pub capabilities: Vec<String>,
pub flags: Vec<String>,
}Expand description
Opaque trust metadata about a peer, returned by providers that support it
(primarily EtereCitizenProvider).
Fields§
§verification_level: Option<u8>Creator verification level, typically 0-3 (0 = unverified, 3 = KYC).
reputation_score: Option<f32>Reputation score. Scale is provider-defined; EtereCitizen uses weighted composite in the [0.0, 5.0] range.
review_count: Option<u32>Number of reviews backing the reputation score.
capabilities: Vec<String>Declared capabilities (e.g. “code-generation”, “research”).
flags: Vec<String>Flags provided by the registry (e.g. “NEW_AGENT”, “NO_REVIEWS”).
Trait Implementations§
Source§impl Clone for TrustMetadata
impl Clone for TrustMetadata
Source§fn clone(&self) -> TrustMetadata
fn clone(&self) -> TrustMetadata
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 TrustMetadata
impl Debug for TrustMetadata
Source§impl Default for TrustMetadata
impl Default for TrustMetadata
Source§fn default() -> TrustMetadata
fn default() -> TrustMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrustMetadata
impl<'de> Deserialize<'de> for TrustMetadata
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
Auto Trait Implementations§
impl Freeze for TrustMetadata
impl RefUnwindSafe for TrustMetadata
impl Send for TrustMetadata
impl Sync for TrustMetadata
impl Unpin for TrustMetadata
impl UnsafeUnpin for TrustMetadata
impl UnwindSafe for TrustMetadata
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