rusty_falcon 0.7.1

Rust bindings for CrowdStrike Falcon API
Documentation
/*
 * CrowdStrike API Specification
 *
 * Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usage guides and examples, see our [documentation inside the Falcon console](https://falcon.crowdstrike.com/support/documentation).     To use the APIs described below, combine the base URL with the path shown for each API endpoint. For commercial cloud customers, your base URL is `https://api.crowdstrike.com`.    Each API endpoint requires authorization via an OAuth2 token. Your first API request should retrieve an OAuth2 token using the `oauth2/token` endpoint, such as `https://api.crowdstrike.com/oauth2/token`. For subsequent requests, include the OAuth2 token in an HTTP authorization header. Tokens expire after 30 minutes, after which you should make a new token request to continue making API requests.
 *
 * The version of the OpenAPI document: rolling
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ItautomationSearchStatus {
    /// Total number of events found. Example: 1000
    #[serde(rename = "event_count")]
    pub event_count: i32,
    /// Whether the search is still in progress. Example: false
    #[serde(rename = "is_pending")]
    pub is_pending: bool,
    /// Unique identifier for the search job. Example: eyJpZCI6IlA1LXdpTHl0dmE1bW00bDVrcmxKZGxhdktJYSJ9
    #[serde(rename = "job_id")]
    pub job_id: String,
    /// Percentage of search completion. Example: 100
    #[serde(rename = "percent_complete")]
    pub percent_complete: i32,
    /// Number of results after grouping. Example: 50
    #[serde(rename = "result_count")]
    pub result_count: i32,
    /// Current status of the search job. Example: complete
    #[serde(rename = "status")]
    pub status: String,
}

impl ItautomationSearchStatus {
    pub fn new(
        event_count: i32,
        is_pending: bool,
        job_id: String,
        percent_complete: i32,
        result_count: i32,
        status: String,
    ) -> ItautomationSearchStatus {
        ItautomationSearchStatus {
            event_count,
            is_pending,
            job_id,
            percent_complete,
            result_count,
            status,
        }
    }
}