pub struct NetworkHost(/* private fields */);Expand description
A canonical network host or Codex-compatible host wildcard.
Implementations§
Source§impl NetworkHost
impl NetworkHost
pub const ALLOWED: &'static str = "exact host, IP address, *.example.com (subdomains), or **.example.com (apex and subdomains); internationalized names must use punycode; URLs, ports, paths, numeric or hex-looking DNS endings, single-label wildcards, empty strings, and bare * are not allowed"
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for NetworkHost
impl Clone for NetworkHost
Source§impl Debug for NetworkHost
impl Debug for NetworkHost
Source§impl<'de> Deserialize<'de> for NetworkHost
impl<'de> Deserialize<'de> for NetworkHost
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 Display for NetworkHost
impl Display for NetworkHost
impl Eq for NetworkHost
Source§impl FromStr for NetworkHost
impl FromStr for NetworkHost
Source§impl Hash for NetworkHost
impl Hash for NetworkHost
Source§impl Ord for NetworkHost
impl Ord for NetworkHost
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NetworkHost
impl PartialEq for NetworkHost
Source§impl PartialOrd for NetworkHost
impl PartialOrd for NetworkHost
Source§impl Serialize for NetworkHost
impl Serialize for NetworkHost
impl StructuralPartialEq for NetworkHost
Auto Trait Implementations§
impl Forget for NetworkHost
impl Freeze for NetworkHost
impl RefUnwindSafe for NetworkHost
impl Send for NetworkHost
impl Sync for NetworkHost
impl Unpin for NetworkHost
impl UnsafeUnpin for NetworkHost
impl UnwindSafe for NetworkHost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.