Struct ckb_jsonrpc_types::LocalNodeProtocol [−][src]
pub struct LocalNodeProtocol { pub id: Uint64, pub name: String, pub support_versions: Vec<String>, }
Expand description
The information of a P2P protocol that is supported by the local node.
Fields
id: Uint64
Unique protocol ID.
name: String
Readable protocol name.
support_versions: Vec<String>
Supported versions.
See Semantic Version about how to specify a version.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LocalNodeProtocol
impl Send for LocalNodeProtocol
impl Sync for LocalNodeProtocol
impl Unpin for LocalNodeProtocol
impl UnwindSafe for LocalNodeProtocol
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V