pub struct AgentRewardState {
pub agent_did: String,
pub trust_score: RewardTrustScore,
pub dimensions: HashMap<String, RewardDimension>,
pub recent_signals: Vec<RewardSignal>,
pub score_history: Vec<(u64, u32)>,
pub last_updated_secs: u64,
pub revoked: bool,
pub revocation_reason: Option<String>,
}Fields§
§agent_did: String§trust_score: RewardTrustScore§dimensions: HashMap<String, RewardDimension>§recent_signals: Vec<RewardSignal>§score_history: Vec<(u64, u32)>§last_updated_secs: u64§revoked: bool§revocation_reason: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for AgentRewardState
impl Clone for AgentRewardState
Source§fn clone(&self) -> AgentRewardState
fn clone(&self) -> AgentRewardState
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentRewardState
impl Debug for AgentRewardState
Source§impl<'de> Deserialize<'de> for AgentRewardState
impl<'de> Deserialize<'de> for AgentRewardState
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 AgentRewardState
impl RefUnwindSafe for AgentRewardState
impl Send for AgentRewardState
impl Sync for AgentRewardState
impl Unpin for AgentRewardState
impl UnsafeUnpin for AgentRewardState
impl UnwindSafe for AgentRewardState
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,
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