use serde::{Deserialize, Serialize}; /*
                                      * BigQuery API
                                      *
                                      * A data platform for customers to create, manage, share and query data.
                                      *
                                      * The version of the OpenAPI document: v2
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ScriptStatistics {
    /// [Output-only] Whether this child job was a statement or expression.
    #[serde(rename = "evaluationKind", skip_serializing_if = "Option::is_none")]
    pub evaluation_kind: Option<String>,
    /// Stack trace showing the line/column/procedure name of each frame on the stack at the point where the current evaluation happened. The leaf frame is first, the primary script is last. Never empty.
    #[serde(rename = "stackFrames", skip_serializing_if = "Option::is_none")]
    pub stack_frames: Option<Vec<crate::google_rest_apis::bigquery_v2::models::ScriptStackFrame>>,
}

impl ScriptStatistics {
    pub fn new() -> ScriptStatistics {
        ScriptStatistics {
            evaluation_kind: None,
            stack_frames: None,
        }
    }
}
