pub struct WsResponseResult<I> {
pub status: String,
pub sub_id: I,
}Expand description
The result returned after a subscription or unsubscription request.
NUT-17 uses the same result shape for both methods. Clients that need to distinguish them must correlate the response’s JSON-RPC request ID with the request they sent.
Fields§
§status: StringStatus
sub_id: ISubscription ID
Trait Implementations§
Source§impl<I> Clone for WsResponseResult<I>where
I: Clone,
impl<I> Clone for WsResponseResult<I>where
I: Clone,
Source§fn clone(&self) -> WsResponseResult<I>
fn clone(&self) -> WsResponseResult<I>
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 moreSource§impl<I> Debug for WsResponseResult<I>where
I: Debug,
impl<I> Debug for WsResponseResult<I>where
I: Debug,
Source§impl<'de, I> Deserialize<'de> for WsResponseResult<I>where
I: Serialize + DeserializeOwned,
impl<'de, I> Deserialize<'de> for WsResponseResult<I>where
I: Serialize + DeserializeOwned,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WsResponseResult<I>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WsResponseResult<I>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<I> Eq for WsResponseResult<I>where
I: Eq,
Source§impl<I> PartialEq for WsResponseResult<I>where
I: PartialEq,
impl<I> PartialEq for WsResponseResult<I>where
I: PartialEq,
Source§impl<I> Serialize for WsResponseResult<I>where
I: Serialize + DeserializeOwned,
impl<I> Serialize for WsResponseResult<I>where
I: Serialize + DeserializeOwned,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<I> StructuralPartialEq for WsResponseResult<I>where
I: PartialEq,
Auto Trait Implementations§
impl<I> Freeze for WsResponseResult<I>where
I: Freeze,
impl<I> RefUnwindSafe for WsResponseResult<I>where
I: RefUnwindSafe,
impl<I> Send for WsResponseResult<I>where
I: Send,
impl<I> Sync for WsResponseResult<I>where
I: Sync,
impl<I> Unpin for WsResponseResult<I>where
I: Unpin,
impl<I> UnsafeUnpin for WsResponseResult<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for WsResponseResult<I>where
I: UnwindSafe,
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