plot.rs (1115B)
1 use crate::farm::{RadrootsFarmRef, RadrootsGcsLocation}; 2 3 #[cfg(not(feature = "std"))] 4 use alloc::{string::String, vec::Vec}; 5 6 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))] 7 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] 8 #[derive(Clone, Debug)] 9 pub struct RadrootsPlotRef { 10 pub pubkey: String, 11 pub d_tag: String, 12 } 13 14 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))] 15 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] 16 #[derive(Clone, Debug)] 17 pub struct RadrootsPlot { 18 pub d_tag: String, 19 pub farm: RadrootsFarmRef, 20 pub name: String, 21 pub about: Option<String>, 22 pub location: Option<RadrootsPlotLocation>, 23 pub tags: Option<Vec<String>>, 24 } 25 26 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))] 27 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] 28 #[derive(Clone, Debug)] 29 pub struct RadrootsPlotLocation { 30 pub primary: Option<String>, 31 pub city: Option<String>, 32 pub region: Option<String>, 33 pub country: Option<String>, 34 pub gcs: RadrootsGcsLocation, 35 }