#[non_exhaustive]pub struct DistGenerator {
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 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>>§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.
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 · 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 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