pub struct AgentLimit {
pub agent: String,
pub voted: String,
pub limit: Vec<f64>,
pub power: Option<f64>,
pub susceptibility: f64,
}Expand description
One agent’s row of the result.
Fields§
§agent: StringIdentity that cast the ballot.
voted: StringThe choice it voted for.
limit: Vec<f64>Where that agent’s opinion ended up, aligned with Outcome::choices.
The opinion it started with, when the trust graph never settles.
power: Option<f64>How much of the consensus this agent’s ballot accounts for, when the
group agreed. None when it did not, because a split group has no single
weighting to report.
susceptibility: f64How far this agent was allowed to move off its own ballot.
Per agent rather than on the outcome, because Friedkin and Johnsen’s susceptibility is a diagonal: two agents in one run can hold different values, and the row is where a reader looks to see which.
Trait Implementations§
Source§impl Clone for AgentLimit
impl Clone for AgentLimit
Source§fn clone(&self) -> AgentLimit
fn clone(&self) -> AgentLimit
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 AgentLimit
impl Debug for AgentLimit
Source§impl<'de> Deserialize<'de> for AgentLimit
impl<'de> Deserialize<'de> for AgentLimit
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
Source§impl PartialEq for AgentLimit
impl PartialEq for AgentLimit
Source§impl Serialize for AgentLimit
impl Serialize for AgentLimit
impl StructuralPartialEq for AgentLimit
Auto Trait Implementations§
impl Freeze for AgentLimit
impl RefUnwindSafe for AgentLimit
impl Send for AgentLimit
impl Sync for AgentLimit
impl Unpin for AgentLimit
impl UnsafeUnpin for AgentLimit
impl UnwindSafe for AgentLimit
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>,
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