pub struct StartSession {
pub response_url: Url,
pub token: Token,
pub location_id: CiString<36>,
pub evse_uid: Option<CiString<36>>,
pub connector_id: Option<CiString<36>>,
pub authorization_reference: Option<CiString<36>>,
pub extensions: Extensions,
}v2_3_0 only.Expand description
A request to start a charging session on a Location, EVSE or Connector.
The Token provided by the eMSP for the
StartSessionSHALL be authorized by the eMSP before sending it to the CPO. Therefore the CPO SHALL NOT check the validity of the Token provided before sending the request to the Charge Point.
Spec: 2.3.0 §mod_commands_startsession_object
Fields§
§response_url: UrlURL that the CommandResult POST should be sent to.
This URL might contain a unique ID to be able to distinguish between StartSession requests.
token: TokenThe Token the Charge Point has to use to start a new session.
location_id: CiString<36>Location.id on which a session is to be started.
evse_uid: Option<CiString<36>>EVSE.uid on which a session is to be started. Required when connector_id is set.
connector_id: Option<CiString<36>>Connector.id on which a session is to be started.
This field is required when the capability
START_SESSION_CONNECTOR_REQUIREDis set on the EVSE.
Reference to the authorization given by the eMSP, echoed in the Session and CDR.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Source§impl StartSession
impl StartSession
Sourcepub fn builder() -> StartSessionBuilder
pub fn builder() -> StartSessionBuilder
Create an instance of StartSession using the builder syntax
Trait Implementations§
Source§impl Clone for StartSession
impl Clone for StartSession
Source§fn clone(&self) -> StartSession
fn clone(&self) -> StartSession
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StartSession
impl Debug for StartSession
Source§impl<'de> Deserialize<'de> for StartSession
impl<'de> Deserialize<'de> for StartSession
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>,
Source§impl Downgrade<StartSession> for StartSession
Available on crate feature convert only.
impl Downgrade<StartSession> for StartSession
convert only.Source§fn downgrade(self) -> Converted<StartSession>
fn downgrade(self) -> Converted<StartSession>
Source§impl JsonSchema for StartSession
impl JsonSchema for StartSession
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for StartSession
impl PartialEq for StartSession
Source§impl Serialize for StartSession
impl Serialize for StartSession
impl StructuralPartialEq for StartSession
Source§impl Upgrade<StartSession> for StartSession
Available on crate feature convert only.
impl Upgrade<StartSession> for StartSession
convert only.