pub struct ServerJsonrpcResponse {
pub id: RequestId,
pub result: ResultFromServer,
/* private fields */
}
Expand description
“Similar to JsonrpcResponse , but with the variants restricted to server-side responses.”
Fields§
§id: RequestId
§result: ResultFromServer
Implementations§
Trait Implementations§
Source§impl Clone for ServerJsonrpcResponse
impl Clone for ServerJsonrpcResponse
Source§fn clone(&self) -> ServerJsonrpcResponse
fn clone(&self) -> ServerJsonrpcResponse
Returns a copy 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 ServerJsonrpcResponse
impl Debug for ServerJsonrpcResponse
Source§impl<'de> Deserialize<'de> for ServerJsonrpcResponse
impl<'de> Deserialize<'de> for ServerJsonrpcResponse
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ServerJsonrpcResponse
Formats the ServerJsonrpcResponse as a JSON string.
impl Display for ServerJsonrpcResponse
Formats the ServerJsonrpcResponse as a JSON string.
Source§impl FromStr for ServerJsonrpcResponse
impl FromStr for ServerJsonrpcResponse
Auto Trait Implementations§
impl Freeze for ServerJsonrpcResponse
impl RefUnwindSafe for ServerJsonrpcResponse
impl Send for ServerJsonrpcResponse
impl Sync for ServerJsonrpcResponse
impl Unpin for ServerJsonrpcResponse
impl UnwindSafe for ServerJsonrpcResponse
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