Struct duniter_peer::PeerV10 [−][src]
pub struct PeerV10 { pub currency: String, pub pubkey: PublicKey, pub blockstamp: Blockstamp, pub endpoints: SmallVec<[String; 4]>, pub signature: Signature, }
Fields
currency: String
pubkey: PublicKey
blockstamp: Blockstamp
endpoints: SmallVec<[String; 4]>
signature: Signature
Implementations
impl PeerV10
[src]
impl PeerV10
[src]pub fn to_raw_string(&self) -> String
[src]
pub fn verify_sig(&self) -> Result<(), SigError>
[src]
Trait Implementations
impl<'de> Deserialize<'de> for PeerV10
[src]
impl<'de> Deserialize<'de> for PeerV10
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerV10
[src]
impl StructuralEq for PeerV10
[src]
impl StructuralPartialEq for PeerV10
[src]
Auto Trait Implementations
impl RefUnwindSafe for PeerV10
impl Send for PeerV10
impl Sync for PeerV10
impl Unpin for PeerV10
impl UnwindSafe for PeerV10
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,