pub struct DiscoverResultResponse {
pub id: RequestId,
pub jsonrpc: JsonRpcVersion,
pub result: DiscoverResult,
}Expand description
A successful response from the server for a DiscoverRequestserver/discover request.
Fields§
§id: RequestId§jsonrpc: JsonRpcVersion§result: DiscoverResultImplementations§
Source§impl DiscoverResultResponse
impl DiscoverResultResponse
Sourcepub fn new(id: RequestId, result: DiscoverResult) -> DiscoverResultResponse
pub fn new(id: RequestId, result: DiscoverResult) -> DiscoverResultResponse
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for DiscoverResultResponse
impl Clone for DiscoverResultResponse
Source§fn clone(&self) -> DiscoverResultResponse
fn clone(&self) -> DiscoverResultResponse
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 Debug for DiscoverResultResponse
impl Debug for DiscoverResultResponse
Source§impl<'de> Deserialize<'de> for DiscoverResultResponse
impl<'de> Deserialize<'de> for DiscoverResultResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiscoverResultResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiscoverResultResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DiscoverResultResponse
impl PartialEq for DiscoverResultResponse
Source§impl Serialize for DiscoverResultResponse
impl Serialize for DiscoverResultResponse
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 StructuralPartialEq for DiscoverResultResponse
Auto Trait Implementations§
impl Freeze for DiscoverResultResponse
impl RefUnwindSafe for DiscoverResultResponse
impl Send for DiscoverResultResponse
impl Sync for DiscoverResultResponse
impl Unpin for DiscoverResultResponse
impl UnsafeUnpin for DiscoverResultResponse
impl UnwindSafe for DiscoverResultResponse
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