pub struct MockBackend { /* private fields */ }Implementations§
Source§impl MockBackend
impl MockBackend
pub fn fixture() -> Self
pub fn pay_inputs(&self) -> MutexGuard<'_, Vec<PayInput>>
pub fn mcp_client_name(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for MockBackend
impl Clone for MockBackend
Source§fn clone(&self) -> MockBackend
fn clone(&self) -> MockBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockBackend
impl Debug for MockBackend
Source§impl Default for MockBackend
impl Default for MockBackend
Source§impl PixBackend for MockBackend
impl PixBackend for MockBackend
fn set_mcp_client_name(&mut self, name: String)
fn whoami<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<WhoamiRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn account<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AccountRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn balance<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<BalanceRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn history<'life0, 'async_trait>(
&'life0 mut self,
query: HistoryQuery,
) -> Pin<Box<dyn Future<Output = Result<HistoryRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn deposit<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<DepositRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn limits<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<PixLimitRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pay<'life0, 'async_trait>(
&'life0 mut self,
input: PayInput,
_idempotency_key: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PayTransferRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_jwt(&mut self, _jwt: String)
fn pix_list<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<DepositRecord>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for MockBackend
impl RefUnwindSafe for MockBackend
impl Send for MockBackend
impl Sync for MockBackend
impl Unpin for MockBackend
impl UnsafeUnpin for MockBackend
impl UnwindSafe for MockBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request