pub struct RpcPeerInfo {
pub account_id: Option<AccountId>,
pub addr: Option<String>,
pub id: PeerId,
}
Expand description
RpcPeerInfo
JSON schema
{
"type": "object",
"required": [
"id"
],
"properties": {
"account_id": {
"anyOf": [
{
"$ref": "#/components/schemas/AccountId"
},
{
"type": "null"
}
]
},
"addr": {
"type": [
"string",
"null"
]
},
"id": {
"$ref": "#/components/schemas/PeerId"
}
}
}
Fields§
§account_id: Option<AccountId>
§addr: Option<String>
§id: PeerId
Trait Implementations§
Source§impl Clone for RpcPeerInfo
impl Clone for RpcPeerInfo
Source§fn clone(&self) -> RpcPeerInfo
fn clone(&self) -> RpcPeerInfo
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 RpcPeerInfo
impl Debug for RpcPeerInfo
Source§impl<'de> Deserialize<'de> for RpcPeerInfo
impl<'de> Deserialize<'de> for RpcPeerInfo
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 From<&RpcPeerInfo> for RpcPeerInfo
impl From<&RpcPeerInfo> for RpcPeerInfo
Source§fn from(value: &RpcPeerInfo) -> Self
fn from(value: &RpcPeerInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcPeerInfo
impl RefUnwindSafe for RpcPeerInfo
impl Send for RpcPeerInfo
impl Sync for RpcPeerInfo
impl Unpin for RpcPeerInfo
impl UnwindSafe for RpcPeerInfo
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