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\nthe 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: PublicKey
Trait 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§fn clone_from(&mut self, source: &Self)
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<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<&KnownProducerView> for KnownProducerView
impl From<&KnownProducerView> for KnownProducerView
Source§fn from(value: &KnownProducerView) -> Self
fn from(value: &KnownProducerView) -> Self
Converts to this type from the input type.
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