Struct nym_mixnet_contract_common::mixnode::MixNode
source · pub struct MixNode {
pub host: String,
pub mix_port: u16,
pub verloc_port: u16,
pub http_api_port: u16,
pub sphinx_key: SphinxKey,
pub identity_key: IdentityKey,
pub version: String,
}
Fields§
§host: String
Network address of this mixnode, for example 1.1.1.1:1234 or foo.mixnode.com
mix_port: u16
§verloc_port: u16
§http_api_port: u16
§sphinx_key: SphinxKey
Base58-encoded x25519 public key used for sphinx key derivation.
identity_key: IdentityKey
Base58-encoded ed25519 EdDSA public key.
version: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for MixNode
impl<'de> Deserialize<'de> for MixNode
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 JsonSchema for MixNode
impl JsonSchema for MixNode
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<MixNode> for MixNode
impl PartialEq<MixNode> for MixNode
impl Eq for MixNode
impl StructuralEq for MixNode
impl StructuralPartialEq for MixNode
Auto Trait Implementations§
impl RefUnwindSafe for MixNode
impl Send for MixNode
impl Sync for MixNode
impl Unpin for MixNode
impl UnwindSafe for MixNode
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