pub struct GateVerification {Show 13 fields
pub success: bool,
pub class: String,
pub action: String,
pub mode: String,
pub confidence: f64,
pub network: GateNetwork,
pub signals: Vec<String>,
pub hostname: String,
pub issued_at: String,
pub ip_match: bool,
pub email: Option<GateEmail>,
pub locked: Vec<String>,
pub plan_required: Option<String>,
}Expand description
Response of POST /v1/gate/verify. Wire names are snake_case.
Fields§
§success: bool§class: StringTraffic class, as on an edge check.
action: Stringallow, flag or block.
mode: Stringmonitor or enforce.
confidence: f64§network: GateNetwork§signals: Vec<String>§hostname: String§issued_at: String§ip_match: bool§email: Option<GateEmail>Present when email was sent. action is then the stricter of the network and email actions.
locked: Vec<String>§plan_required: Option<String>Trait Implementations§
Source§impl Clone for GateVerification
impl Clone for GateVerification
Source§impl Debug for GateVerification
impl Debug for GateVerification
Source§impl Default for GateVerification
impl Default for GateVerification
Source§impl<'de> Deserialize<'de> for GateVerificationwhere
GateVerification: Default,
impl<'de> Deserialize<'de> for GateVerificationwhere
GateVerification: 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 GateVerification
impl PartialEq for GateVerification
Source§impl Serialize for GateVerification
impl Serialize for GateVerification
impl StructuralPartialEq for GateVerification
Auto Trait Implementations§
impl Freeze for GateVerification
impl RefUnwindSafe for GateVerification
impl Send for GateVerification
impl Sync for GateVerification
impl Unpin for GateVerification
impl UnsafeUnpin for GateVerification
impl UnwindSafe for GateVerification
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