pub struct MockLnUrlHttpClient { /* private fields */ }Implementations§
Source§impl MockLnUrlHttpClient
impl MockLnUrlHttpClient
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockLnUrlHttpClient
impl MockLnUrlHttpClient
Sourcepub fn expect_get_pay_request_response(&mut self) -> &mut Expectation<'static>
pub fn expect_get_pay_request_response(&mut self) -> &mut Expectation<'static>
Create an Expectation for mocking the get_pay_request_response method
Sourcepub fn expect_get_pay_request_callback_response(
&mut self,
) -> &mut Expectation<'static>
pub fn expect_get_pay_request_callback_response( &mut self, ) -> &mut Expectation<'static>
Create an Expectation for mocking the get_pay_request_callback_response method
Sourcepub fn expect_get_withdrawal_request_response(
&mut self,
) -> &mut Expectation<'static>
pub fn expect_get_withdrawal_request_response( &mut self, ) -> &mut Expectation<'static>
Create an Expectation for mocking the get_withdrawal_request_response method
Sourcepub fn expect_send_invoice_for_withdraw_request(
&mut self,
) -> &mut Expectation<'static>
pub fn expect_send_invoice_for_withdraw_request( &mut self, ) -> &mut Expectation<'static>
Create an Expectation for mocking the send_invoice_for_withdraw_request method
Sourcepub fn expect_get_json(&mut self) -> &mut Expectation<'static>
pub fn expect_get_json(&mut self) -> &mut Expectation<'static>
Create an Expectation for mocking the get_json method
Trait Implementations§
Source§impl Debug for MockLnUrlHttpClient
impl Debug for MockLnUrlHttpClient
Source§impl Default for MockLnUrlHttpClient
impl Default for MockLnUrlHttpClient
Source§impl LnUrlHttpClient for MockLnUrlHttpClient
impl LnUrlHttpClient for MockLnUrlHttpClient
fn get_pay_request_response<'life0, 'life1, 'async_trait>(
&'life0 self,
lnurl: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PayRequestResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pay_request_callback_response<'life0, 'life1, 'async_trait>(
&'life0 self,
callback_url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PayRequestCallbackResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn get_withdrawal_request_response<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WithdrawRequestResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn send_invoice_for_withdraw_request<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<OkResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn get_json<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for MockLnUrlHttpClient
impl RefUnwindSafe for MockLnUrlHttpClient
impl Send for MockLnUrlHttpClient
impl Sync for MockLnUrlHttpClient
impl Unpin for MockLnUrlHttpClient
impl UnsafeUnpin for MockLnUrlHttpClient
impl UnwindSafe for MockLnUrlHttpClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Downcast for T
impl<T> Downcast for T
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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