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§const fn clone_from(&mut self, source: &Self)
const 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<RpcKnownProducer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcKnownProducer, <__D as Deserializer<'de>>::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) -> RpcKnownProducer
fn from(value: &RpcKnownProducer) -> RpcKnownProducer
Converts to this type from the input type.
Source§impl Serialize for RpcKnownProducer
impl Serialize for RpcKnownProducer
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
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