pub struct ReputationV1 {
pub score: u64,
pub contributions: u64,
pub weight_pct: u8,
}Expand description
Derived by Hive; never written by an engine.
Fields§
§score: u64Sum of event weights with a 180-day half-life, rounded.
contributions: u64Accepted contributions counted.
weight_pct: u8How much this participant’s votes and events count, in percent: 25 for a new Free account, otherwise 100.
Implementations§
Source§impl ReputationV1
impl ReputationV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for ReputationV1
impl Clone for ReputationV1
impl Copy for ReputationV1
Source§impl Debug for ReputationV1
impl Debug for ReputationV1
Source§impl<'de> Deserialize<'de> for ReputationV1
impl<'de> Deserialize<'de> for ReputationV1
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 ReputationV1
Source§impl PartialEq for ReputationV1
impl PartialEq for ReputationV1
Source§impl Serialize for ReputationV1
impl Serialize for ReputationV1
impl StructuralPartialEq for ReputationV1
Auto Trait Implementations§
impl Forget for ReputationV1
impl Freeze for ReputationV1
impl Move for ReputationV1
impl RefUnwindSafe for ReputationV1
impl Send for ReputationV1
impl Sync for ReputationV1
impl Unpin for ReputationV1
impl UnsafeUnpin for ReputationV1
impl UnwindSafe for ReputationV1
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