pub struct ShodanClient { /* private fields */ }Implementations§
Source§impl ShodanClient
impl ShodanClient
pub fn new(api_key: String) -> Self
pub async fn account_profile(&self) -> Result<AccountProfileResponse>
pub async fn api_info(&self) -> Result<ApiInfoResponse>
pub async fn directory_query( &self, page: Option<u32>, sort: Option<&str>, order: Option<&str>, ) -> Result<ShodanClientResponse<DirectoryQueryResponse>>
pub async fn directory_query_search( &self, query: &str, page: Option<u32>, ) -> Result<ShodanClientResponse<DirectoryQueryResponse>>
pub async fn dns_domain( &self, domain: &str, history: Option<bool>, dns_type: Option<&str>, page: Option<u32>, ) -> Result<DnsDomainResponse>
pub async fn dns_resolve( &self, hostnames: &[&str], ) -> Result<HashMap<String, Option<String>>>
pub async fn dns_reverse( &self, ips: &[&str], ) -> Result<HashMap<String, Vec<String>>>
pub async fn scanning_ports(&self) -> Result<ShodanClientResponse<Vec<u16>>>
pub async fn scanning_protocols( &self, ) -> Result<ShodanClientResponse<HashMap<String, String>>>
pub async fn host_ip( &self, ip: &str, history: Option<bool>, minifi: Option<bool>, ) -> Result<SearchHostIpResponse>
pub async fn host_search( &self, query: &str, facets: Option<&str>, page: Option<u32>, minifi: Option<bool>, ) -> Result<SearchResult>
pub async fn host_count( &self, query: &str, facets: Option<&str>, ) -> Result<CountResponse>
pub async fn host_facets(&self) -> Result<Vec<String>>
pub async fn host_filters(&self) -> Result<Vec<String>>
pub async fn host_tokens(&self, query: &str) -> Result<TokenResponse>
pub async fn my_ip(&self) -> Result<String>
pub async fn http_headers(&self) -> Result<HashMap<String, String>>
Trait Implementations§
Source§impl Clone for ShodanClient
impl Clone for ShodanClient
Source§fn clone(&self) -> ShodanClient
fn clone(&self) -> ShodanClient
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 ShodanClient
impl RefUnwindSafe for ShodanClient
impl Send for ShodanClient
impl Sync for ShodanClient
impl Unpin for ShodanClient
impl UnsafeUnpin for ShodanClient
impl UnwindSafe for ShodanClient
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