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