render_api/model/owner.rs
1
2use serde::{Serialize, Deserialize};
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct Owner {
5 pub email: String,
6 pub id: String,
7 pub name: String,
8 #[serde(rename = "type")]
9 pub type_: String,
10}
11impl std::fmt::Display for Owner {
12 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
13 write!(f, "{}", serde_json::to_string(self).unwrap())
14 }
15}