pub struct SentinelClient { /* private fields */ }Implementations§
Source§impl SentinelClient
impl SentinelClient
pub fn new(base_url: String, api_key: String) -> Result<Self, SentinelError>
pub async fn analyze_threat( &self, request: ThreatAnalysisRequest, ) -> Result<ThreatAnalysisResponse, SentinelError>
pub async fn validate_policy( &self, request: PolicyValidationRequest, ) -> Result<PolicyValidationResponse, SentinelError>
pub async fn health_check(&self) -> Result<bool, SentinelError>
Trait Implementations§
Source§impl Clone for SentinelClient
impl Clone for SentinelClient
Auto Trait Implementations§
impl !RefUnwindSafe for SentinelClient
impl !UnwindSafe for SentinelClient
impl Freeze for SentinelClient
impl Send for SentinelClient
impl Sync for SentinelClient
impl Unpin for SentinelClient
impl UnsafeUnpin for SentinelClient
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