pub struct ServiceEndpoint {
pub ip_address_v4: Option<Ipv4Addr>,
pub port: i32,
pub domain_name: String,
}
Expand description
Contains the IP address, the port, and the domain name representing a service endpoint of a Node in a network. Used to reach the Hiero API and submit transactions to the network.
Fields§
§ip_address_v4: Option<Ipv4Addr>
The 4-byte IPv4 address of the endpoint encoded in left to right order
port: i32
The port of the service endpoint
domain_name: String
A node domain name.
This MUST be the fully qualified domain(DNS) name of the node.
This value MUST NOT be more than 253 characters.
domain_name and ipAddressV4 are mutually exclusive.
When the domain_name
field is set, the ipAddressV4
field MUST NOT be set.
When the ipAddressV4
field is set, the domain_name
field MUST NOT be set.
Trait Implementations§
Source§impl Clone for ServiceEndpoint
impl Clone for ServiceEndpoint
Source§fn clone(&self) -> ServiceEndpoint
fn clone(&self) -> ServiceEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceEndpoint
impl Debug for ServiceEndpoint
Source§impl PartialEq for ServiceEndpoint
impl PartialEq for ServiceEndpoint
impl StructuralPartialEq for ServiceEndpoint
Auto Trait Implementations§
impl Freeze for ServiceEndpoint
impl RefUnwindSafe for ServiceEndpoint
impl Send for ServiceEndpoint
impl Sync for ServiceEndpoint
impl Unpin for ServiceEndpoint
impl UnwindSafe for ServiceEndpoint
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
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>
Wrap the input message
T
in a tonic::Request