pub struct HostAddress {
pub hostname: Option<String>,
pub port: Option<i32>,
}Expand description
A HostAddress represents a transport end point, which is the combination of an IP address or hostname and a port number.
This type is not used in any activity, and only used as part of another schema.
Fields§
§hostname: Option<String>Required. Hostname for the connection.
port: Option<i32>Optional. Port for the connection.
Trait Implementations§
Source§impl Clone for HostAddress
impl Clone for HostAddress
Source§fn clone(&self) -> HostAddress
fn clone(&self) -> HostAddress
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 HostAddress
impl Debug for HostAddress
Source§impl Default for HostAddress
impl Default for HostAddress
Source§fn default() -> HostAddress
fn default() -> HostAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HostAddress
impl<'de> Deserialize<'de> for HostAddress
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 Serialize for HostAddress
impl Serialize for HostAddress
impl Part for HostAddress
Auto Trait Implementations§
impl Freeze for HostAddress
impl RefUnwindSafe for HostAddress
impl Send for HostAddress
impl Sync for HostAddress
impl Unpin for HostAddress
impl UnwindSafe for HostAddress
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