struct AgentSearchSpaceRaw {
agent_id: String,
commodity_id: String,
year: u32,
search_space: String,
}
Fields§
§agent_id: String
The agent to apply the search space to.
commodity_id: String
The commodity to apply the search space to.
year: u32
The year to apply the search space to.
search_space: String
The processes that the agent will consider investing in. Expressed as process IDs separated
by semicolons or None
, meaning all processes.
Implementations§
Source§impl AgentSearchSpaceRaw
impl AgentSearchSpaceRaw
fn to_agent_search_space( &self, process_ids: &IndexSet<ProcessID>, commodities: &CommodityMap, milestone_years: &[u32], ) -> Result<AgentSearchSpace>
Trait Implementations§
Source§impl Debug for AgentSearchSpaceRaw
impl Debug for AgentSearchSpaceRaw
Source§impl<'de> Deserialize<'de> for AgentSearchSpaceRaw
impl<'de> Deserialize<'de> for AgentSearchSpaceRaw
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 AgentSearchSpaceRaw
impl PartialEq for AgentSearchSpaceRaw
impl StructuralPartialEq for AgentSearchSpaceRaw
Auto Trait Implementations§
impl Freeze for AgentSearchSpaceRaw
impl RefUnwindSafe for AgentSearchSpaceRaw
impl Send for AgentSearchSpaceRaw
impl Sync for AgentSearchSpaceRaw
impl Unpin for AgentSearchSpaceRaw
impl UnwindSafe for AgentSearchSpaceRaw
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> 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