netbox-openapi 0.6.0

low level netbox bindings (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * NetBox REST API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 4.6.2 (4.6)
 *
 * Generated by: https://openapi-generator.tech
 */

/// GenericObject : Minimal representation of some generic object identified by ContentType and PK.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct GenericObject {
    #[serde(rename = "object_type")]
    pub object_type: String,
    #[serde(rename = "object_id")]
    pub object_id: i32,
    #[serde(
        rename = "object",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub object: Option<Option<serde_json::Value>>,
}

impl GenericObject {
    /// Minimal representation of some generic object identified by ContentType and PK.
    pub fn new(object_type: String, object_id: i32) -> GenericObject {
        GenericObject {
            object_type,
            object_id,
            object: None,
        }
    }
}