Struct okta::threat_insights::ThreatInsights
source · pub struct ThreatInsights {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl ThreatInsights
impl ThreatInsights
sourcepub async fn get_current_configuration(
&self
) -> Result<Response<ThreatInsightConfiguration>, ClientError>
pub async fn get_current_configuration( &self ) -> Result<Response<ThreatInsightConfiguration>, ClientError>
This function performs a GET
to the /api/v1/threats/configuration
endpoint.
Gets current ThreatInsight configuration
sourcepub async fn update_configuration(
&self,
body: &ThreatInsightConfiguration
) -> Result<Response<ThreatInsightConfiguration>, ClientError>
pub async fn update_configuration( &self, body: &ThreatInsightConfiguration ) -> Result<Response<ThreatInsightConfiguration>, ClientError>
This function performs a POST
to the /api/v1/threats/configuration
endpoint.
Updates ThreatInsight configuration
Auto Trait Implementations§
impl !RefUnwindSafe for ThreatInsights
impl Send for ThreatInsights
impl Sync for ThreatInsights
impl Unpin for ThreatInsights
impl !UnwindSafe for ThreatInsights
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