Struct validators::domain::DomainLocalhostableWithPort [−][src]
pub struct DomainLocalhostableWithPort(_);
Methods
impl DomainLocalhostableWithPort
[src]
impl DomainLocalhostableWithPort
pub fn from_string(
full_domain: String
) -> Result<DomainLocalhostableWithPort, DomainError>
[src]
pub fn from_string(
full_domain: String
) -> Result<DomainLocalhostableWithPort, DomainError>
pub fn from_str(
full_domain: &str
) -> Result<DomainLocalhostableWithPort, DomainError>
[src]
pub fn from_str(
full_domain: &str
) -> Result<DomainLocalhostableWithPort, DomainError>
pub fn from_domain(
domain: Domain
) -> Result<DomainLocalhostableWithPort, DomainError>
[src]
pub fn from_domain(
domain: Domain
) -> Result<DomainLocalhostableWithPort, DomainError>
pub fn into_domain(self) -> Domain
[src]
pub fn into_domain(self) -> Domain
pub fn as_domain(&self) -> &Domain
[src]
pub fn as_domain(&self) -> &Domain
impl DomainLocalhostableWithPort
[src]
impl DomainLocalhostableWithPort
pub fn get_top_level_domain(&self) -> Option<&str>
[src]
pub fn get_top_level_domain(&self) -> Option<&str>
pub fn get_domain(&self) -> &str
[src]
pub fn get_domain(&self) -> &str
pub fn get_sub_domain(&self) -> Option<&str>
[src]
pub fn get_sub_domain(&self) -> Option<&str>
pub fn get_full_domain(&self) -> &str
[src]
pub fn get_full_domain(&self) -> &str
impl DomainLocalhostableWithPort
[src]
impl DomainLocalhostableWithPort
pub fn get_full_domain_without_port(&self) -> &str
[src]
pub fn get_full_domain_without_port(&self) -> &str
pub fn get_port(&self) -> DomainPort
[src]
pub fn get_port(&self) -> DomainPort
pub fn is_localhost(&self) -> bool
[src]
pub fn is_localhost(&self) -> bool
Trait Implementations
impl Clone for DomainLocalhostableWithPort
[src]
impl Clone for DomainLocalhostableWithPort
fn clone(&self) -> DomainLocalhostableWithPort
[src]
fn clone(&self) -> DomainLocalhostableWithPort
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 From<DomainLocalhostableWithPort> for Domain
[src]
impl From<DomainLocalhostableWithPort> for Domain
fn from(d: DomainLocalhostableWithPort) -> Self
[src]
fn from(d: DomainLocalhostableWithPort) -> Self
Performs the conversion.
impl Validated for DomainLocalhostableWithPort
[src]
impl Validated for DomainLocalhostableWithPort
impl Display for DomainLocalhostableWithPort
[src]
impl Display for DomainLocalhostableWithPort
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 DomainLocalhostableWithPort
[src]
impl PartialEq for DomainLocalhostableWithPort
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 PartialEq<Domain> for DomainLocalhostableWithPort
[src]
impl PartialEq<Domain> for DomainLocalhostableWithPort
Auto Trait Implementations
impl Send for DomainLocalhostableWithPort
impl Send for DomainLocalhostableWithPort
impl Sync for DomainLocalhostableWithPort
impl Sync for DomainLocalhostableWithPort