Crate ocpi

Source

Re-exports§

pub use commands_module::CommandsModule;
pub use commands_module::ResponsePromise;
pub use commands_module::ResultPromise;
pub use credentials_module::CredentialsModule;
pub use sessions_module::SessionsModule;
pub use versions_module::VersionsModule;
pub use common::*;
pub use types::*;

Modules§

commands_module
Commands module
common
credentials_module
7. Credentials module
locations_module
sessions_module
Sessions module
types
credentials/types/mod.rs
versions_module
6. Versions module
warp

Structs§

Client
Implements the different OCPI calls as a client.
Context
ContextResult
Cpo
Cpo implements the CPO role of the OCPI Protocol.
MpscCommandsHandler
NoCommandsHandler
Response
An Ocpi Response structure.
SimpleVersionsStore

Enums§

Authorized
ClientError
5.2. 2xxx: Client errors
Error
HubError
5.4. 4xxx: Hub errors
ServerError
5.3. 3xxx: Server errors

Traits§

IntoContextResult
Party
Represents a Party in the Ocpi Protocol.
PartyStore
SessionsStore
Store
VersionsStore

Type Aliases§

Result
The Result type used by all OCPI functions. Can be converted in a Response