pub enum LSPS1Response {
GetInfo(GetInfoResponse),
GetInfoError(ResponseError),
CreateOrder(CreateOrderResponse),
CreateOrderError(ResponseError),
GetOrder(CreateOrderResponse),
GetOrderError(ResponseError),
}
Expand description
An enum that captures all the valid JSON-RPC responses in the LSPS1 protocol.
Variants§
GetInfo(GetInfoResponse)
A successful response to a GetInfoRequest
.
GetInfoError(ResponseError)
An error response to a GetInfoRequest
.
CreateOrder(CreateOrderResponse)
A successful response to a CreateOrderRequest
.
CreateOrderError(ResponseError)
An error response to a CreateOrderRequest
.
GetOrder(CreateOrderResponse)
A successful response to a GetOrderRequest
.
GetOrderError(ResponseError)
An error response to a GetOrderRequest
.
Trait Implementations§
Source§impl Clone for LSPS1Response
impl Clone for LSPS1Response
Source§fn clone(&self) -> LSPS1Response
fn clone(&self) -> LSPS1Response
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 LSPS1Response
impl Debug for LSPS1Response
Source§impl PartialEq for LSPS1Response
impl PartialEq for LSPS1Response
impl Eq for LSPS1Response
impl StructuralPartialEq for LSPS1Response
Auto Trait Implementations§
impl Freeze for LSPS1Response
impl RefUnwindSafe for LSPS1Response
impl Send for LSPS1Response
impl Sync for LSPS1Response
impl Unpin for LSPS1Response
impl UnwindSafe for LSPS1Response
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