pub enum LSPS2Response {
GetInfo(GetInfoResponse),
GetInfoError(ResponseError),
Buy(BuyResponse),
BuyError(ResponseError),
}
Expand description
An enum that captures all the valid JSON-RPC responses in the LSPS2 protocol.
Variants§
GetInfo(GetInfoResponse)
A successful response to a LSPS2Request::GetInfo
request.
GetInfoError(ResponseError)
An error response to a LSPS2Request::GetInfo
request.
Buy(BuyResponse)
A successful response to a LSPS2Request::Buy
request.
BuyError(ResponseError)
An error response to a LSPS2Request::Buy
request.
Trait Implementations§
Source§impl Clone for LSPS2Response
impl Clone for LSPS2Response
Source§fn clone(&self) -> LSPS2Response
fn clone(&self) -> LSPS2Response
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 LSPS2Response
impl Debug for LSPS2Response
Source§impl PartialEq for LSPS2Response
impl PartialEq for LSPS2Response
impl Eq for LSPS2Response
impl StructuralPartialEq for LSPS2Response
Auto Trait Implementations§
impl Freeze for LSPS2Response
impl RefUnwindSafe for LSPS2Response
impl Send for LSPS2Response
impl Sync for LSPS2Response
impl Unpin for LSPS2Response
impl UnwindSafe for LSPS2Response
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