#[non_exhaustive]pub struct DistBus {Show 16 fields
pub id: String,
pub terminals: Vec<String>,
pub grounded: Vec<String>,
pub v_min: Option<f64>,
pub v_max: Option<f64>,
pub vpn_min: Option<Vec<f64>>,
pub vpn_max: Option<Vec<f64>>,
pub vpp_min: Option<Vec<f64>>,
pub vpp_max: Option<Vec<f64>>,
pub vpos_min: Option<f64>,
pub vpos_max: Option<f64>,
pub vneg_max: Option<f64>,
pub vzero_max: Option<f64>,
pub vn_max: Option<f64>,
pub location: Option<Location>,
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.id: String§terminals: Vec<String>Ordered terminal names; OpenDSS node numbers as strings.
grounded: Vec<String>Terminals tied to ground with zero impedance.
v_min: Option<f64>Voltage magnitude bounds, volts: the scalar pair plus the phase to neutral and phase to phase families, and the per-sequence scalars (BMOPF schema 0.1.0: positive sequence has both bounds, negative and zero sequence and neutral to ground are magnitude caps whose lower bound is always 0).
v_max: Option<f64>§vpn_min: Option<Vec<f64>>§vpn_max: Option<Vec<f64>>§vpp_min: Option<Vec<f64>>§vpp_max: Option<Vec<f64>>§vpos_min: Option<f64>§vpos_max: Option<f64>§vneg_max: Option<f64>§vzero_max: Option<f64>§vn_max: Option<f64>§location: Option<Location>Optional bus coordinates in the network coordinate space.
extras: ExtrasImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DistBus
impl<'de> Deserialize<'de> for DistBus
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 DistBus
impl JsonSchema for DistBus
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 moreimpl StructuralPartialEq for DistBus
Auto Trait Implementations§
impl Freeze for DistBus
impl RefUnwindSafe for DistBus
impl Send for DistBus
impl Sync for DistBus
impl Unpin for DistBus
impl UnsafeUnpin for DistBus
impl UnwindSafe for DistBus
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