asana2 0.5.0

Fluent OpenAPI client for Asana
Documentation
use serde::{Serialize, Deserialize};
use super::UserBase;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct UserBaseResponse {
    #[serde(flatten)]
    pub user_base: UserBase,
    ///The user's email address.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    ///A map of the user’s profile photo in various sizes, or null if no photo is set. Sizes provided are 21, 27, 36, 60, 128, and 1024. All images are in PNG format, except for 1024 (which is in JPEG format).
    #[serde(skip_serializing_if = "Option::is_none")]
    pub photo: Option<serde_json::Value>,
}
impl std::fmt::Display for UserBaseResponse {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}
impl std::ops::Deref for UserBaseResponse {
    type Target = UserBase;
    fn deref(&self) -> &Self::Target {
        &self.user_base
    }
}
impl std::ops::DerefMut for UserBaseResponse {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.user_base
    }
}