1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! A user, not always a Jenkins user use serde::{Deserialize, Serialize}; /// Short User that is used in list and links from other structs #[derive(Debug, Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct ShortUser { /// Full name of the user pub full_name: String, /// Absolute URL to the user profile pub absolute_url: String, #[cfg(not(feature = "extra-fields-visibility"))] #[serde(flatten)] pub(crate) extra_fields: Option<serde_json::Value>, #[cfg(feature = "extra-fields-visibility")] /// Extra fields not parsed for a common object #[serde(flatten)] pub extra_fields: Option<serde_json::Value>, }