pub trait CdrsReceiver:
Send
+ Sync
+ 'static {
// Required methods
fn cdr(
&self,
cdr_id: String,
context: RequestContext,
) -> impl Future<Output = Handled<Cdr>> + Send;
fn post_cdr(
&self,
cdr: Cdr,
context: RequestContext,
) -> impl Future<Output = Handled<Url>> + Send;
}Available on crate feature
server only.Expand description
The eMSP side of the CDRs module.
The only OCPI module where POST creates a server-owned object:
The eMSP returns the URL to the just created CDR object in the
Locationheader field.
Spec: 2.3.0 §mod_cdrs_emsp_interface
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl CdrsReceiver for MockPeer
Available on crate feature
testkit only.