Skip to main content

TariffsSender

Trait TariffsSender 

Source
pub trait TariffsSender:
    Send
    + Sync
    + 'static {
    // Required method
    fn list(
        &self,
        query: PageQuery,
        context: RequestContext,
    ) -> impl Future<Output = Handled<Page<Tariff>>> + Send;
}
Available on crate feature server only.
Expand description

The CPO side of the Tariffs module.

Spec: 2.3.0 §mod_tariffs_cpo_interface

Required Methods§

Source

fn list( &self, query: PageQuery, context: RequestContext, ) -> impl Future<Output = Handled<Page<Tariff>>> + Send

GET {tariffs} — one page of Tariffs.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl TariffsSender for MockPeer

Available on crate feature testkit only.