pub struct KnownProducerView {
pub account_id: AccountId,
pub next_hops: Option<Vec<PublicKey>>,
pub peer_id: PublicKey,
}Expand description
Information about a Producer: its account name, peer_id and a list of connected peers that the node can use to send message for this producer.
JSON schema
{
"description": "Information about a Producer: its account name, peer_id and a list of connected peers that\n the node can use to send message for this producer.",
"type": "object",
"required": [
"account_id",
"peer_id"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"next_hops": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/PublicKey"
}
},
"peer_id": {
"$ref": "#/components/schemas/PublicKey"
}
}
}Fields§
§account_id: AccountId§next_hops: Option<Vec<PublicKey>>§peer_id: PublicKeyTrait Implementations§
Source§impl Clone for KnownProducerView
impl Clone for KnownProducerView
Source§fn clone(&self) -> KnownProducerView
fn clone(&self) -> KnownProducerView
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 KnownProducerView
impl Debug for KnownProducerView
Source§impl<'de> Deserialize<'de> for KnownProducerView
impl<'de> Deserialize<'de> for KnownProducerView
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KnownProducerView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KnownProducerView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&KnownProducerView> for KnownProducerView
impl From<&KnownProducerView> for KnownProducerView
Source§fn from(value: &KnownProducerView) -> KnownProducerView
fn from(value: &KnownProducerView) -> KnownProducerView
Converts to this type from the input type.
Source§impl Serialize for KnownProducerView
impl Serialize for KnownProducerView
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 KnownProducerView
impl RefUnwindSafe for KnownProducerView
impl Send for KnownProducerView
impl Sync for KnownProducerView
impl Unpin for KnownProducerView
impl UnwindSafe for KnownProducerView
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