[−][src]Struct durs_network_documents::network_peer::PeerCardV11
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(&self) -> 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]
fn eq(&self, other: &PeerCardV11) -> bool
[src]
fn ne(&self, other: &PeerCardV11) -> bool
[src]
impl Hash for PeerCardV11
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for PeerCardV11
[src]
impl<'de> Deserialize<'de> for PeerCardV11
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for PeerCardV11
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl TextSignable for PeerCardV11
[src]
fn as_signable_text(&self) -> String
[src]
fn issuer_pubkey(&self) -> PubKey
[src]
fn signature(&self) -> Option<Sig>
[src]
fn set_signature(&mut self, signature: Sig)
[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
fn parse(doc: &str) -> Result<Self::DocumentType, TextDocumentParseError>
[src]
fn from_pest_pair(pair: Pair<Rule>) -> PeerCardV11
[src]
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> ToJsonObject for T where
T: ToStringObject,
[src]
T: ToStringObject,
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