pub enum DetectedQueryType {
Domain(ValidatedDomain),
IpAddress(ValidatedIpAddress),
}Expand description
Detected query type (domain or IP address)
This enum represents the result of auto-detecting whether a query string is a domain name or an IP address.
Variants§
Domain(ValidatedDomain)
The query is a valid domain name
IpAddress(ValidatedIpAddress)
The query is a valid IP address (IPv4 or IPv6)
Trait Implementations§
Source§impl Clone for DetectedQueryType
impl Clone for DetectedQueryType
Source§fn clone(&self) -> DetectedQueryType
fn clone(&self) -> DetectedQueryType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DetectedQueryType
impl RefUnwindSafe for DetectedQueryType
impl Send for DetectedQueryType
impl Sync for DetectedQueryType
impl Unpin for DetectedQueryType
impl UnwindSafe for DetectedQueryType
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