pub struct NoopPartnerStore;Expand description
A PartnerStore that never persists anything.
Every get returns None. Use as the default in deployments that rely
exclusively on static config-based partner lookup (i.e. when
PartnerDirectory::from_cli_pairs is sufficient).
⚠️ Data loss: All upserts are silently discarded. PARTIN-derived updates received at runtime will not be retained across restarts.
Trait Implementations§
Source§impl Clone for NoopPartnerStore
impl Clone for NoopPartnerStore
Source§fn clone(&self) -> NoopPartnerStore
fn clone(&self) -> NoopPartnerStore
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 moreimpl Copy for NoopPartnerStore
Source§impl Debug for NoopPartnerStore
impl Debug for NoopPartnerStore
Source§impl Default for NoopPartnerStore
impl Default for NoopPartnerStore
Source§fn default() -> NoopPartnerStore
fn default() -> NoopPartnerStore
Returns the “default value” for a type. Read more
Source§impl PartnerStore for NoopPartnerStore
impl PartnerStore for NoopPartnerStore
Source§async fn upsert(
&self,
_tenant_id: TenantId,
_record: &PartnerRecord,
) -> Result<(), EngineError>
async fn upsert( &self, _tenant_id: TenantId, _record: &PartnerRecord, ) -> Result<(), EngineError>
Insert or update the record for
(tenant_id, record.gln). Read moreSource§async fn get(
&self,
_tenant_id: TenantId,
_gln: &MarktpartnerCode,
) -> Result<Option<PartnerRecord>, EngineError>
async fn get( &self, _tenant_id: TenantId, _gln: &MarktpartnerCode, ) -> Result<Option<PartnerRecord>, EngineError>
Source§async fn remove(
&self,
_tenant_id: TenantId,
_gln: &MarktpartnerCode,
) -> Result<(), EngineError>
async fn remove( &self, _tenant_id: TenantId, _gln: &MarktpartnerCode, ) -> Result<(), EngineError>
Remove the record for
(tenant_id, gln). Read moreSource§async fn list(
&self,
_tenant_id: TenantId,
) -> Result<Vec<PartnerRecord>, EngineError>
async fn list( &self, _tenant_id: TenantId, ) -> Result<Vec<PartnerRecord>, EngineError>
Return all records registered for
tenant_id. Read moreSource§async fn as4_endpoint(
&self,
tenant_id: TenantId,
gln: &MarktpartnerCode,
) -> Result<Option<Box<str>>, EngineError>
async fn as4_endpoint( &self, tenant_id: TenantId, gln: &MarktpartnerCode, ) -> Result<Option<Box<str>>, EngineError>
Return the AS4 endpoint URL for
gln, if known. Read moreSource§async fn api_webdienste_endpoint(
&self,
tenant_id: TenantId,
gln: &MarktpartnerCode,
) -> Result<Option<Box<str>>, EngineError>
async fn api_webdienste_endpoint( &self, tenant_id: TenantId, gln: &MarktpartnerCode, ) -> Result<Option<Box<str>>, EngineError>
Return the API-Webdienste Strom base URL for
gln, if known. Read moreAuto Trait Implementations§
impl Freeze for NoopPartnerStore
impl RefUnwindSafe for NoopPartnerStore
impl Send for NoopPartnerStore
impl Sync for NoopPartnerStore
impl Unpin for NoopPartnerStore
impl UnsafeUnpin for NoopPartnerStore
impl UnwindSafe for NoopPartnerStore
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