1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
/*
* Box Platform API
*
* [Box Platform](https://box.dev) provides functionality to provide access to content stored within [Box](https://box.com). It provides endpoints for basic manipulation of files and folders, management of users within an enterprise, as well as more complex topics such as legal holds and retention policies.
*
* The version of the OpenAPI document: 2.0.0
* Contact: devrel@box.com
* Generated by: https://openapi-generator.tech
*/
/// TrackingCode : Tracking codes allow an admin to generate reports from the admin console and assign an attribute to a specific group of users. This setting must be enabled for an enterprise before it can be used.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct TrackingCode {
/// `tracking_code`
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<RHashType>,
/// The name of the tracking code, which must be preconfigured in the Admin Console
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// The value of the tracking code
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl TrackingCode {
/// Tracking codes allow an admin to generate reports from the admin console and assign an attribute to a specific group of users. This setting must be enabled for an enterprise before it can be used.
pub fn new() -> TrackingCode {
TrackingCode {
r#type: None,
name: None,
value: None,
}
}
}
/// `tracking_code`
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum RHashType {
#[serde(rename = "tracking_code")]
TrackingCode,
}
impl Default for RHashType {
fn default() -> RHashType {
Self::TrackingCode
}
}