[−][src]Struct validators::domain::Domain
Methods
impl Domain
[src]
impl Domain
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
pub fn get_full_domain_without_port(&self) -> &str
[src]
pub fn get_full_domain_without_port(&self) -> &str
pub fn get_port(&self) -> Option<DomainPort>
[src]
pub fn get_port(&self) -> Option<DomainPort>
pub fn is_localhost(&self) -> bool
[src]
pub fn is_localhost(&self) -> bool
pub fn into_string(self) -> String
[src]
pub fn into_string(self) -> String
Trait Implementations
impl Validated for Domain
[src]
impl Validated for Domain
impl PartialEq<Domain> for Domain
[src]
impl PartialEq<Domain> for Domain
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
fn eq(&self, other: &Domain) -> bool
[src]
fn eq(&self, other: &Domain) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Domain) -> bool
[src]
fn ne(&self, other: &Domain) -> bool
This method tests for !=
.
impl PartialEq<Domain> for DomainLocalhostableAllowPort
[src]
impl PartialEq<Domain> for DomainLocalhostableAllowPort
fn eq(&self, other: &Domain) -> bool
[src]
fn eq(&self, other: &Domain) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Domain) -> bool
[src]
fn ne(&self, other: &Domain) -> bool
This method tests for !=
.
impl PartialEq<Domain> for DomainLocalhostableWithoutPort
[src]
impl PartialEq<Domain> for DomainLocalhostableWithoutPort
fn eq(&self, other: &Domain) -> bool
[src]
fn eq(&self, other: &Domain) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Domain) -> bool
[src]
fn ne(&self, other: &Domain) -> bool
This method tests for !=
.
impl PartialEq<Domain> for DomainUnlocalhostableWithPort
[src]
impl PartialEq<Domain> for DomainUnlocalhostableWithPort
fn eq(&self, other: &Domain) -> bool
[src]
fn eq(&self, other: &Domain) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Domain) -> bool
[src]
fn ne(&self, other: &Domain) -> bool
This method tests for !=
.
impl PartialEq<Domain> for DomainUnlocalhostableAllowPort
[src]
impl PartialEq<Domain> for DomainUnlocalhostableAllowPort
fn eq(&self, other: &Domain) -> bool
[src]
fn eq(&self, other: &Domain) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Domain) -> bool
[src]
fn ne(&self, other: &Domain) -> bool
This method tests for !=
.
impl PartialEq<Domain> for DomainUnlocalhostableWithoutPort
[src]
impl PartialEq<Domain> for DomainUnlocalhostableWithoutPort
fn eq(&self, other: &Domain) -> bool
[src]
fn eq(&self, other: &Domain) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Domain) -> bool
[src]
fn ne(&self, other: &Domain) -> bool
This method tests for !=
.
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 From<DomainLocalhostableAllowPort> for Domain
[src]
impl From<DomainLocalhostableAllowPort> for Domain
fn from(d: DomainLocalhostableAllowPort) -> Self
[src]
fn from(d: DomainLocalhostableAllowPort) -> Self
Performs the conversion.
impl From<DomainLocalhostableWithoutPort> for Domain
[src]
impl From<DomainLocalhostableWithoutPort> for Domain
fn from(d: DomainLocalhostableWithoutPort) -> Self
[src]
fn from(d: DomainLocalhostableWithoutPort) -> Self
Performs the conversion.
impl From<DomainUnlocalhostableWithPort> for Domain
[src]
impl From<DomainUnlocalhostableWithPort> for Domain
fn from(d: DomainUnlocalhostableWithPort) -> Self
[src]
fn from(d: DomainUnlocalhostableWithPort) -> Self
Performs the conversion.
impl From<DomainUnlocalhostableAllowPort> for Domain
[src]
impl From<DomainUnlocalhostableAllowPort> for Domain
fn from(d: DomainUnlocalhostableAllowPort) -> Self
[src]
fn from(d: DomainUnlocalhostableAllowPort) -> Self
Performs the conversion.
impl From<DomainUnlocalhostableWithoutPort> for Domain
[src]
impl From<DomainUnlocalhostableWithoutPort> for Domain
fn from(d: DomainUnlocalhostableWithoutPort) -> Self
[src]
fn from(d: DomainUnlocalhostableWithoutPort) -> Self
Performs the conversion.
impl Clone for Domain
[src]
impl Clone for Domain
fn clone(&self) -> Domain
[src]
fn clone(&self) -> Domain
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)
Performs copy-assignment from source
. Read more
impl Debug for Domain
[src]
impl Debug for Domain
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 Domain
[src]
impl Display for Domain
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Typeable for T where
T: Any,
impl<T> Typeable for T where
T: Any,