#[non_exhaustive]pub struct Terminal {
pub component: Option<ComponentId>,
pub equipment: ComponentId,
pub terminal: u8,
pub voltage_level: ComponentId,
pub bus: Option<ComponentId>,
pub connectable_bus: Option<ComponentId>,
pub node: Option<ComponentId>,
pub connected: bool,
pub active_power_mw: Option<f64>,
pub reactive_power_mvar: Option<f64>,
}Expand description
One equipment terminal and its bus breaker or node breaker connection.
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.component: Option<ComponentId>The terminal’s own identity when the source assigns one.
equipment: ComponentId§terminal: u8One for single terminal equipment, or the branch/transformer side number.
voltage_level: ComponentId§bus: Option<ComponentId>§connectable_bus: Option<ComponentId>§node: Option<ComponentId>§connected: bool§active_power_mw: Option<f64>Active power injected at this AC terminal, in MW.
reactive_power_mvar: Option<f64>Reactive power injected at this AC terminal, in MVAr.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Terminal
impl<'de> Deserialize<'de> for Terminal
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 Terminal
impl JsonSchema for Terminal
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 Terminal
Auto Trait Implementations§
impl Freeze for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnsafeUnpin for Terminal
impl UnwindSafe for Terminal
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