pub struct TariffsReceiver<'a>(/* private fields */);Available on crate feature
client only.Expand description
Pushes Tariffs to an eMSP.
The Tariffs Receiver interface is the one client-owned-object interface with a DELETE:
a Tariff that no longer applies is removed, not marked.
Spec: 2.3.0 §mod_tariffs_emsp_interface
Implementations§
Source§impl<'a> TariffsReceiver<'a>
impl<'a> TariffsReceiver<'a>
Sourcepub const fn new(client: ModuleClient<'a>) -> Self
pub const fn new(client: ModuleClient<'a>) -> Self
Wraps a module client.
Sourcepub async fn tariff(
&self,
owner: &PartyRef,
tariff_id: &str,
) -> Result<Tariff, OcpiError>
pub async fn tariff( &self, owner: &PartyRef, tariff_id: &str, ) -> Result<Tariff, OcpiError>
GET {tariffs}/{country_code}/{party_id}/{tariff_id}.
§Errors
Propagates transport and OCPI-level errors.
Trait Implementations§
Source§impl<'a> Clone for TariffsReceiver<'a>
impl<'a> Clone for TariffsReceiver<'a>
Source§fn clone(&self) -> TariffsReceiver<'a>
fn clone(&self) -> TariffsReceiver<'a>
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 moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for TariffsReceiver<'a>
impl<'a> !UnwindSafe for TariffsReceiver<'a>
impl<'a> Freeze for TariffsReceiver<'a>
impl<'a> Send for TariffsReceiver<'a>
impl<'a> Sync for TariffsReceiver<'a>
impl<'a> Unpin for TariffsReceiver<'a>
impl<'a> UnsafeUnpin for TariffsReceiver<'a>
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