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
 */

/// BriefCustomFieldChoiceSet : Adds an `owner` field for models which have a ForeignKey to users.Owner.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct BriefCustomFieldChoiceSet {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[serde(rename = "display", skip_serializing_if = "Option::is_none")]
    pub display: Option<String>,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "choices_count", skip_serializing_if = "Option::is_none")]
    pub choices_count: Option<i32>,
}

impl BriefCustomFieldChoiceSet {
    /// Adds an `owner` field for models which have a ForeignKey to users.Owner.
    pub fn new(name: String) -> BriefCustomFieldChoiceSet {
        BriefCustomFieldChoiceSet {
            id: None,
            url: None,
            display: None,
            name,
            description: None,
            choices_count: None,
        }
    }
}