struct AgentSearchSpaceRaw {
agent_id: String,
commodity_id: String,
years: String,
search_space: String,
}Fields§
§agent_id: StringThe agent to apply the search space to.
commodity_id: StringThe commodity to apply the search space to.
years: StringThe year(s) to apply the search space to.
search_space: StringThe 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 into_agent_search_space( self, agents: &AgentMap, processes: &ProcessMap, commodity_ids: &HashSet<CommodityID>, 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