Enum validators::host::Host [−][src]
Variants
Domain(Domain)
IPv4(IPv4)
IPv6(IPv6)
Methods
impl Host
[src]
impl Host
pub fn get_full_host(&self) -> &str
[src]
pub fn get_full_host(&self) -> &str
pub fn get_full_host_without_port(&self) -> &str
[src]
pub fn get_full_host_without_port(&self) -> &str
pub fn is_local(&self) -> bool
[src]
pub fn is_local(&self) -> bool
Trait Implementations
impl Clone for Host
[src]
impl Clone for Host
fn clone(&self) -> Host
[src]
fn clone(&self) -> Host
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Validated for Host
[src]
impl Validated for Host
impl Debug for Host
[src]
impl Debug for Host
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Host
[src]
impl Display for Host
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Host
[src]
impl PartialEq for Host
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Self) -> bool
[src]
fn ne(&self, other: &Self) -> bool
This method tests for !=
.
impl From<HostLocalable> for Host
[src]
impl From<HostLocalable> for Host
fn from(d: HostLocalable) -> Self
[src]
fn from(d: HostLocalable) -> Self
Performs the conversion.
impl PartialEq<Host> for HostLocalable
[src]
impl PartialEq<Host> for HostLocalable
fn eq(&self, other: &Host) -> bool
[src]
fn eq(&self, other: &Host) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Host) -> bool
[src]
fn ne(&self, other: &Host) -> bool
This method tests for !=
.
impl From<HostUnlocalable> for Host
[src]
impl From<HostUnlocalable> for Host
fn from(d: HostUnlocalable) -> Self
[src]
fn from(d: HostUnlocalable) -> Self
Performs the conversion.
impl PartialEq<Host> for HostUnlocalable
[src]
impl PartialEq<Host> for HostUnlocalable