Skip to main content

Crate ipscanner

Crate ipscanner 

Source
Expand description

Official Rust client for the IPScanner API.

let client = ipscanner::Client::new("pk_live_...");

let result = client.ip().lookup("1.1.1.1").await?;
println!("{} {}", result.network_class, result.risk_score);

let vpn = client.ip().vpn("2001:4860:4860::8888").await?;
println!("vpn: {}", vpn.is_vpn);

See https://ipscanner.io/api-documentation for the full API reference.

Re-exports§

pub use resources::BulkStream;
pub use types::*;

Modules§

resources
Resource groups returned by Client accessors.
types
Request and response types.

Structs§

ApiError
An error response from the API.
Client
An IPScanner API client. Cheap to clone; clones share one connection pool.
ClientBuilder
Builds a Client with custom settings.
RateLimitError
A 429 response, with the quota fields from the body and the rate-limit headers.
RateLimitHeaders
The X-RateLimit-*, X-Quota-* and Retry-After response headers.

Enums§

Error
Errors returned by the client.

Constants§

DEFAULT_BASE_URL
The default API base URL.