#[non_exhaustive]pub struct DistGenerator {Show 14 fields
pub name: String,
pub bus: String,
pub terminal_map: Vec<String>,
pub configuration: Configuration,
pub p_nom: Vec<f64>,
pub q_nom: Vec<f64>,
pub p_min: Option<Vec<f64>>,
pub p_max: Option<Vec<f64>>,
pub q_min: Option<Vec<f64>>,
pub q_max: Option<Vec<f64>>,
pub cost: Option<f64>,
pub s_max: Option<Vec<f64>>,
pub i_max: Option<Vec<f64>>,
pub extras: Extras,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§bus: String§terminal_map: Vec<String>§configuration: Configuration§p_nom: Vec<f64>Setpoint, watts per phase.
q_nom: Vec<f64>§p_min: Option<Vec<f64>>Bounds per phase. A null element reads as -Inf in a lower bound
and +Inf in an upper bound: the PMD unbounded spelling (#268).
p_max: Option<Vec<f64>>§q_min: Option<Vec<f64>>§q_max: Option<Vec<f64>>§cost: Option<f64>$/kWh; no OpenDSS equivalent, so it is None until a format supplies it.
s_max: Option<Vec<f64>>Per-conductor apparent power and current limits, VA and amps (BMOPF generator fields, alongside the p/q bounds).
i_max: Option<Vec<f64>>§extras: ExtrasImplementations§
Trait Implementations§
Source§impl Clone for DistGenerator
impl Clone for DistGenerator
Source§fn clone(&self) -> DistGenerator
fn clone(&self) -> DistGenerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DistGenerator
impl Debug for DistGenerator
Source§impl<'de> Deserialize<'de> for DistGenerator
impl<'de> Deserialize<'de> for DistGenerator
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 JsonSchema for DistGenerator
impl JsonSchema for DistGenerator
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DistGenerator
impl PartialEq for DistGenerator
Source§impl Serialize for DistGenerator
impl Serialize for DistGenerator
impl StructuralPartialEq for DistGenerator
Auto Trait Implementations§
impl Freeze for DistGenerator
impl RefUnwindSafe for DistGenerator
impl Send for DistGenerator
impl Sync for DistGenerator
impl Unpin for DistGenerator
impl UnsafeUnpin for DistGenerator
impl UnwindSafe for DistGenerator
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