pub struct RiskEngine { /* private fields */ }Implementations§
Source§impl RiskEngine
impl RiskEngine
pub fn new(config: RiskConfig) -> Self
pub async fn assess_risk( &self, user: &User, ip_address: Option<IpAddr>, device_id: Option<&str>, _user_agent: Option<&str>, ) -> Result<RiskAssessment>
pub async fn update_behavior_profile( &self, user_id: &Uuid, ip_address: Option<IpAddr>, device_id: Option<String>, success: bool, )
Auto Trait Implementations§
impl Freeze for RiskEngine
impl !RefUnwindSafe for RiskEngine
impl Send for RiskEngine
impl Sync for RiskEngine
impl Unpin for RiskEngine
impl !UnwindSafe for RiskEngine
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