/// Some user representation /// Users love pizzas! #[derive(Debug, PartialEq, Eq, Clone, serde::Deserialize, serde::Serialize)] #[serde(default)] pub struct User { /// Yummy ! /// I love it ! pub likes_pizza: bool, } #[inline(always)] fn default_user_likes_pizza() -> bool { false } impl Default for User { fn default() -> User { User { likes_pizza: default_user_likes_pizza(), } } }