use crate::types::{GateVerification, GateVerifyRequest};
use crate::{Client, Error};
#[derive(Debug, Clone, Copy)]
pub struct Gate<'a> {
client: &'a Client,
}
impl<'a> Gate<'a> {
pub(crate) fn new(client: &'a Client) -> Self {
Gate { client }
}
pub async fn verify(&self, req: &GateVerifyRequest) -> Result<GateVerification, Error> {
self.client.post_keyless("/gate/verify", req).await
}
}