pub struct StartSession {
pub response_url: Url,
pub token: Token,
pub location_id: OcpiString<39>,
pub evse_uid: Option<OcpiString<39>>,
pub extensions: Extensions,
}Available on crate feature
v2_1_1 only.Expand description
A request to start a charging session, in OCPI 2.1.1.
There is no connector_id and no authorization_reference; both arrived in OCPI 2.2.
Spec: 2.1.1 §mod_commands_startsession_object
Fields§
§response_url: UrlURL that the CommandResponse POST should be sent to.
token: TokenThe Token the Charge Point has to use to start a new session.
location_id: OcpiString<39>Location.id on which a session is to be started.
evse_uid: Option<OcpiString<39>>EVSE.uid on which a session is to be started.
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 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 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