pub struct NodeAddress {
pub node_id: u64,
pub rsa_public_key: Vec<u8>,
pub node_account_id: AccountId,
pub tls_certificate_hash: Vec<u8>,
pub service_endpoints: Vec<String>,
pub description: String,
}
Expand description
The data about a node, including its service endpoints and the Hiero account to be paid for services provided by the node (that is, queries answered and transactions submitted.).
Fields§
§node_id: u64
A non-sequential, unique, static identifier for the node
rsa_public_key: Vec<u8>
The node’s X509 RSA public key used to sign stream files.
node_account_id: AccountId
The account to be paid for queries and transactions sent to this node.
tls_certificate_hash: Vec<u8>
Hash of the node’s TLS certificate.
Precisely, this field is a string of hexadecimal characters which, translated to binary, are the SHA-384 hash of the UTF-8 NFKD encoding of the node’s TLS cert in PEM format.
Its value can be used to verify the node’s certificate it presents during TLS negotiations.
service_endpoints: Vec<String>
A node’s service endpoints as strings in format “host:port”.
description: String
A description of the node, up to 100 bytes.
Trait Implementations§
Source§impl Clone for NodeAddress
impl Clone for NodeAddress
Source§fn clone(&self) -> NodeAddress
fn clone(&self) -> NodeAddress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for NodeAddress
impl RefUnwindSafe for NodeAddress
impl Send for NodeAddress
impl Sync for NodeAddress
impl Unpin for NodeAddress
impl UnwindSafe for NodeAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request