nautobot-openapi 0.2.0

low level nautobot bindings (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 2.4.20 (2.4)
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct GraphQlapiRequest {
    /// GraphQL query
    #[serde(rename = "query")]
    pub query: String,
    /// Variables in JSON Format
    #[serde(
        rename = "variables",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub variables: Option<Option<serde_json::Value>>,
}

impl GraphQlapiRequest {
    pub fn new(query: String) -> GraphQlapiRequest {
        GraphQlapiRequest {
            query,
            variables: None,
        }
    }
}