[][src]Struct durs_network_documents::network_peer::PeerCardV11

pub struct PeerCardV11 {
    pub currency_name: CurrencyName,
    pub issuer: PubKey,
    pub node_id: NodeId,
    pub blockstamp: Blockstamp,
    pub endpoints: Vec<EndpointV2>,
    pub endpoints_str: Vec<String>,
    pub sig: Option<Sig>,
}

Peer card V11

Fields

currency_name: CurrencyName

Currency name

issuer: PubKey

Peer card issuer

node_id: NodeId

Issuer node id

blockstamp: Blockstamp

Peer card Blockstamp

endpoints: Vec<EndpointV2>

Peer card binary endpoints

endpoints_str: Vec<String>

Peer card string endpoints

sig: Option<Sig>

Signature

Methods

impl PeerCardV11[src]

pub fn to_json_peer(&self) -> Result<String, Error>[src]

Convert to JSON String

Trait Implementations

impl Clone for PeerCardV11[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for PeerCardV11[src]

impl PartialEq<PeerCardV11> for PeerCardV11[src]

impl Hash for PeerCardV11[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for PeerCardV11[src]

impl<'de> Deserialize<'de> for PeerCardV11[src]

impl Serialize for PeerCardV11[src]

impl TextSignable for PeerCardV11[src]

fn sign(&mut self, priv_key: PrivKey) -> Result<String, SignError>[src]

Sign text message

fn verify(&self) -> Result<(), SigError>[src]

Check signature of text message

impl ToStringObject for PeerCardV11[src]

type StringObject = PeerCardV11Stringified

fn to_string_object(&self) -> PeerCardV11Stringified[src]

Transforms an object into a json object

impl TextDocumentParser<Rule> for PeerCardV11[src]

type DocumentType = PeerCardV11

Type of document generated by the parser

Auto Trait Implementations

impl Send for PeerCardV11

impl Sync for PeerCardV11

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> ToJsonObject for T where
    T: ToStringObject
[src]

fn to_json_string(&self) -> Result<String, Error>[src]

Convert to JSON String

fn to_json_string_pretty(&self) -> Result<String, Error>[src]

Convert to JSON String pretty