[−][src]Struct validators::domain::DomainLocalhostableWithPort
Methods
impl DomainLocalhostableWithPort
[src]
pub fn from_string(
full_domain: String
) -> Result<DomainLocalhostableWithPort, DomainError>
[src]
full_domain: String
) -> Result<DomainLocalhostableWithPort, DomainError>
pub fn from_str(
full_domain: &str
) -> Result<DomainLocalhostableWithPort, DomainError>
[src]
full_domain: &str
) -> Result<DomainLocalhostableWithPort, DomainError>
pub fn from_domain(
domain: Domain
) -> Result<DomainLocalhostableWithPort, DomainError>
[src]
domain: Domain
) -> Result<DomainLocalhostableWithPort, DomainError>
pub fn into_domain(self) -> Domain
[src]
pub fn as_domain(&self) -> &Domain
[src]
impl DomainLocalhostableWithPort
[src]
pub fn get_top_level_domain(&self) -> Option<&str>
[src]
pub fn get_domain(&self) -> &str
[src]
pub fn get_sub_domain(&self) -> Option<&str>
[src]
pub fn get_full_domain(&self) -> &str
[src]
impl DomainLocalhostableWithPort
[src]
pub fn get_full_domain_without_port(&self) -> &str
[src]
pub fn get_port(&self) -> u16
[src]
pub fn is_localhost(&self) -> bool
[src]
Trait Implementations
impl Validated for DomainLocalhostableWithPort
[src]
impl ValidatedWrapper for DomainLocalhostableWithPort
[src]
type Error = DomainError
fn from_string(full_domain: String) -> Result<Self, Self::Error>
[src]
fn from_str(full_domain: &str) -> Result<Self, Self::Error>
[src]
impl From<DomainLocalhostableWithPort> for Domain
[src]
fn from(d: DomainLocalhostableWithPort) -> Self
[src]
impl PartialEq<DomainLocalhostableWithPort> for DomainLocalhostableWithPort
[src]
fn eq(&self, other: &DomainLocalhostableWithPort) -> bool
[src]
fn ne(&self, other: &DomainLocalhostableWithPort) -> bool
[src]
impl Clone for DomainLocalhostableWithPort
[src]
fn clone(&self) -> DomainLocalhostableWithPort
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for DomainLocalhostableWithPort
[src]
impl Deref for DomainLocalhostableWithPort
[src]
impl Display for DomainLocalhostableWithPort
[src]
impl Debug for DomainLocalhostableWithPort
[src]
impl Hash for DomainLocalhostableWithPort
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> FromFormValue<'a> for DomainLocalhostableWithPort
[src]
type Error = DomainError
The associated error which can be returned from parsing. It is a good idea to have the return type be or contain an &'v str
so that the unparseable string can be examined after a bad parse. Read more
fn from_form_value(form_value: &'a RawStr) -> Result<Self, Self::Error>
[src]
fn default() -> Option<Self>
[src]
Returns a default value to be used when the form field does not exist. If this returns None
, then the field is required. Otherwise, this should return Some(default_value)
. The default implementation simply returns None
. Read more
impl<'a> FromParam<'a> for DomainLocalhostableWithPort
[src]
type Error = DomainError
The associated error to be returned if parsing/validation fails.
fn from_param(param: &'a RawStr) -> Result<Self, Self::Error>
[src]
impl Serialize for DomainLocalhostableWithPort
[src]
impl<'de> Deserialize<'de> for DomainLocalhostableWithPort
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for DomainLocalhostableWithPort
impl Sync for DomainLocalhostableWithPort
impl Send for DomainLocalhostableWithPort
impl RefUnwindSafe for DomainLocalhostableWithPort
impl UnwindSafe for DomainLocalhostableWithPort
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,