pub struct ComponentGraphConfig {
pub allow_component_validation_failures: bool,
pub allow_unconnected_components: bool,
pub allow_unspecified_inverters: bool,
pub disable_fallback_components: bool,
}Expand description
Configuration options for the ComponentGraph.
Fields§
§allow_component_validation_failures: boolWhether to allow validation errors on components. When this is true,
the graph will be built even if there are validation errors on
components.
allow_unconnected_components: boolWhether to allow unconnected components in the graph, that are not reachable from the root.
allow_unspecified_inverters: boolWhether to allow untyped inverters in the graph. When this is true,
inverters that have InverterType::Unspecified will be assumed to be
Battery inverters.
disable_fallback_components: boolWhether to disable fallback components in generated formulas. When this
is true, the formulas will not include fallback components.
Trait Implementations§
Source§impl Clone for ComponentGraphConfig
impl Clone for ComponentGraphConfig
Source§fn clone(&self) -> ComponentGraphConfig
fn clone(&self) -> ComponentGraphConfig
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 ComponentGraphConfig
impl Debug for ComponentGraphConfig
Source§impl Default for ComponentGraphConfig
impl Default for ComponentGraphConfig
Source§fn default() -> ComponentGraphConfig
fn default() -> ComponentGraphConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentGraphConfig
impl RefUnwindSafe for ComponentGraphConfig
impl Send for ComponentGraphConfig
impl Sync for ComponentGraphConfig
impl Unpin for ComponentGraphConfig
impl UnwindSafe for ComponentGraphConfig
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