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,
}Available on crate feature
v2_2_1 only.Expand description
A request to start a charging session, in OCPI 2.2.1.
Spec: 2.2.1 §mod_commands_startsession_object
Fields§
§response_url: UrlURL that the CommandResult POST should be sent to.
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.
Reference to the authorization given by the eMSP.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Downgrade<StartSession> for StartSession
Available on crate feature convert only.
impl Downgrade<StartSession> for StartSession
Available on crate feature
convert only.Source§fn downgrade(self) -> Converted<StartSession>
fn downgrade(self) -> Converted<StartSession>
Converts to the older version.
Source§impl JsonSchema for StartSession
impl JsonSchema for StartSession
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 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
Available on crate feature
convert only.Source§fn upgrade(self) -> Converted<StartSession>
fn upgrade(self) -> Converted<StartSession>
Converts to the newer version.
Source§impl Validate for StartSession
impl Validate for StartSession
Auto Trait Implementations§
impl Freeze for StartSession
impl RefUnwindSafe for StartSession
impl Send for StartSession
impl Sync for StartSession
impl Unpin for StartSession
impl UnsafeUnpin for StartSession
impl UnwindSafe for StartSession
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