pub struct VpnResponse {Show 13 fields
pub ip: String,
pub is_vpn: bool,
pub is_tor: bool,
pub network_class: String,
pub anonymized: bool,
pub provider: Option<String>,
pub vpn_provider: Option<String>,
pub risk_score: i64,
pub evidence: Vec<String>,
pub purity: Option<Purity>,
pub deduction_count: Option<i64>,
pub locked: Vec<String>,
pub plan_required: Option<String>,
}Expand description
Response of GET /v1/vpn/{ip}.
Fields§
§ip: String§is_vpn: bool§is_tor: bool§network_class: String§anonymized: bool§provider: Option<String>The network owner. Null on the Free plan.
vpn_provider: Option<String>The VPN brand when known. Null on the Free plan.
risk_score: i64§evidence: Vec<String>§purity: Option<Purity>The score breakdown. Null on the Free plan.
deduction_count: Option<i64>On a locked answer: how many reasons the withheld breakdown holds.
locked: Vec<String>Fields nulled because of the plan.
plan_required: Option<String>The plan that unlocks locked.
Trait Implementations§
Source§impl Clone for VpnResponse
impl Clone for VpnResponse
Source§impl Debug for VpnResponse
impl Debug for VpnResponse
Source§impl Default for VpnResponse
impl Default for VpnResponse
Source§impl<'de> Deserialize<'de> for VpnResponsewhere
VpnResponse: Default,
impl<'de> Deserialize<'de> for VpnResponsewhere
VpnResponse: Default,
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 PartialEq for VpnResponse
impl PartialEq for VpnResponse
Source§impl Serialize for VpnResponse
impl Serialize for VpnResponse
impl StructuralPartialEq for VpnResponse
Auto Trait Implementations§
impl Freeze for VpnResponse
impl RefUnwindSafe for VpnResponse
impl Send for VpnResponse
impl Sync for VpnResponse
impl Unpin for VpnResponse
impl UnsafeUnpin for VpnResponse
impl UnwindSafe for VpnResponse
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