#[non_exhaustive]pub struct Generator {}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bus: BusId§pg: f64Real power set point (MW).
qg: f64Reactive power set point (MVAr).
pmax: f64§pmin: f64§qmax: f64§qmin: f64§vg: f64Voltage set point (p.u.).
mbase: f64§in_service: bool§cost: Option<GenCost>§caps: GenCapsThe MATPOWER gen capability / ramp columns past PMIN, aligned to
GEN_EXTRA_KEYS by index (None for a column the source omitted).
A fixed array, not an Extras map: a string-keyed map per generator
costs 11 heap allocations each, which dominates the parse of a large
generator-heavy case. Surfaced into formats that name them (PowerModels).
On the JSON snapshot it is a name-keyed object (see caps_serde) so the
schema stays additive when GEN_EXTRA_KEYS grows; #[serde(default)] so a
snapshot that omits it deserializes to the empty set.
regulated_bus: Option<BusId>The remote bus whose voltage this generator regulates, when that is not its
own terminal bus (PSS/E IREG). None means it regulates its own bus.
Part of the cross-element voltage-control graph: a format that names a
remote regulated bus (PSS/E) keeps it across a round trip instead of
collapsing every generator onto its own terminal. #[serde(default)] so
JSON written before the field existed still deserializes.
uid: Option<String>Stable row identity; see Bus::uid.