pub struct DecisionTreeConfig {
pub name: String,
pub root: Option<Node>,
pub nodes: HashMap<String, Node>,
}Expand description
Configuration for a decision tree
Fields§
§name: StringName of the decision tree
root: Option<Node>Root node definition
nodes: HashMap<String, Node>Additional nodes by name
Implementations§
Trait Implementations§
Source§impl Clone for DecisionTreeConfig
impl Clone for DecisionTreeConfig
Source§fn clone(&self) -> DecisionTreeConfig
fn clone(&self) -> DecisionTreeConfig
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 DecisionTreeConfig
impl Debug for DecisionTreeConfig
Source§impl Default for DecisionTreeConfig
impl Default for DecisionTreeConfig
Source§fn default() -> DecisionTreeConfig
fn default() -> DecisionTreeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecisionTreeConfig
impl<'de> Deserialize<'de> for DecisionTreeConfig
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 DecisionTreeConfig
impl RefUnwindSafe for DecisionTreeConfig
impl Send for DecisionTreeConfig
impl Sync for DecisionTreeConfig
impl Unpin for DecisionTreeConfig
impl UnsafeUnpin for DecisionTreeConfig
impl UnwindSafe for DecisionTreeConfig
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