pub struct OutputTreeOptions {
pub max_depth: Option<usize>,
pub max_nodes: Option<usize>,
pub min_salience: Option<f64>,
pub types: Option<Vec<String>>,
}Expand description
Options for preparing a tree for output to a consumer.
Fields§
§max_depth: Option<usize>Maximum depth to resolve. Nodes beyond this become stubs with summaries.
max_nodes: Option<usize>Maximum total nodes. Lowest-salience subtrees are collapsed first.
min_salience: Option<f64>Minimum salience threshold. Nodes below this are excluded.
types: Option<Vec<String>>Only include nodes of these types.
Trait Implementations§
Source§impl Clone for OutputTreeOptions
impl Clone for OutputTreeOptions
Source§fn clone(&self) -> OutputTreeOptions
fn clone(&self) -> OutputTreeOptions
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 OutputTreeOptions
impl Debug for OutputTreeOptions
Source§impl Default for OutputTreeOptions
impl Default for OutputTreeOptions
Source§fn default() -> OutputTreeOptions
fn default() -> OutputTreeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OutputTreeOptions
impl RefUnwindSafe for OutputTreeOptions
impl Send for OutputTreeOptions
impl Sync for OutputTreeOptions
impl Unpin for OutputTreeOptions
impl UnsafeUnpin for OutputTreeOptions
impl UnwindSafe for OutputTreeOptions
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