pub struct Connector {
pub id: CiString<36>,
pub standard: ConnectorType,
pub format: ConnectorFormat,
pub power_type: PowerType,
pub max_voltage: i32,
pub max_amperage: i32,
pub max_electric_power: Option<i32>,
pub tariff_ids: Vec<CiString<36>>,
pub terms_and_conditions: Option<Url>,
pub last_updated: DateTime,
pub extensions: Extensions,
}Available on crate feature
v2_2_1 only.Expand description
The socket, or cable and plug, available for the EV to use, in OCPI 2.2.1.
Spec: 2.2.1 §mod_locations_connector_object
Fields§
§id: CiString<36>Identifier of the Connector within the EVSE.
standard: ConnectorTypeThe standard of the installed connector.
format: ConnectorFormatThe format (socket/cable) of the installed connector.
power_type: PowerTypeWhether the connector supplies AC or DC, and on how many phases.
max_voltage: i32Maximum voltage of the connector, in volt.
max_amperage: i32Maximum amperage of the connector, in ampere.
max_electric_power: Option<i32>Maximum electric power this connector can deliver, in watt.
tariff_ids: Vec<CiString<36>>Identifiers of the currently valid charging tariffs.
terms_and_conditions: Option<Url>URL to the operator’s terms and conditions.
last_updated: DateTimeTimestamp when this Connector was last updated.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Connector
impl<'de> Deserialize<'de> for Connector
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 Connector
impl JsonSchema for Connector
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 Connector
Auto Trait Implementations§
impl Freeze for Connector
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnsafeUnpin for Connector
impl UnwindSafe for Connector
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