struct AgentRaw {
id: String,
description: String,
regions: String,
decision_rule: String,
decision_lexico_tolerance: Option<f64>,
}
Expand description
An agent in the simulation
Fields§
§id: String
A unique identifier for the agent.
description: String
A text description of the agent.
regions: String
The region(s) in which the agent operates.
decision_rule: String
The decision rule that the agent uses to decide investment.
decision_lexico_tolerance: Option<f64>
The tolerance around the main objective to consider secondary objectives.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentRaw
impl<'de> Deserialize<'de> for AgentRaw
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 StructuralPartialEq for AgentRaw
Auto Trait Implementations§
impl Freeze for AgentRaw
impl RefUnwindSafe for AgentRaw
impl Send for AgentRaw
impl Sync for AgentRaw
impl Unpin for AgentRaw
impl UnwindSafe for AgentRaw
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