pub struct SmartLookup { /* private fields */ }Implementations§
Source§impl SmartLookup
impl SmartLookup
pub fn new() -> Self
Sourcepub fn prefer_rdap(self, prefer: bool) -> Self
pub fn prefer_rdap(self, prefer: bool) -> Self
Always try RDAP first, fall back to WHOIS on failure
Sourcepub fn include_fallback(self, include: bool) -> Self
pub fn include_fallback(self, include: bool) -> Self
Include WHOIS data as fallback even when RDAP succeeds (for additional fields)
pub async fn lookup(&self, domain: &str) -> Result<LookupResult>
Trait Implementations§
Source§impl Clone for SmartLookup
impl Clone for SmartLookup
Source§fn clone(&self) -> SmartLookup
fn clone(&self) -> SmartLookup
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 moreSource§impl Debug for SmartLookup
impl Debug for SmartLookup
Auto Trait Implementations§
impl Freeze for SmartLookup
impl !RefUnwindSafe for SmartLookup
impl Send for SmartLookup
impl Sync for SmartLookup
impl Unpin for SmartLookup
impl !UnwindSafe for SmartLookup
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