pub struct NodeResult {
pub name: String,
pub node_type: NodeType,
pub expected_value: f64,
pub optimal_choice: Option<String>,
pub branch_values: HashMap<String, f64>,
}Expand description
Result for a single node
Fields§
§name: StringNode name
node_type: NodeTypeNode type
expected_value: f64Expected value at this node
optimal_choice: Option<String>Optimal choice (for decision nodes)
branch_values: HashMap<String, f64>Branch values
Trait Implementations§
Source§impl Clone for NodeResult
impl Clone for NodeResult
Source§fn clone(&self) -> NodeResult
fn clone(&self) -> NodeResult
Returns a duplicate of the value. Read more
1.0.0 · 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 NodeResult
impl Debug for NodeResult
Source§impl<'de> Deserialize<'de> for NodeResult
impl<'de> Deserialize<'de> for NodeResult
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
Auto Trait Implementations§
impl Freeze for NodeResult
impl RefUnwindSafe for NodeResult
impl Send for NodeResult
impl Sync for NodeResult
impl Unpin for NodeResult
impl UnsafeUnpin for NodeResult
impl UnwindSafe for NodeResult
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