1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
//! A data source used by BigML. use super::Resource; use super::id::*; use super::status::*; resource! { api_name "source"; /// A data source used by BigML. /// /// TODO: Still lots of missing fields. #[derive(Debug, Deserialize, Clone)] pub struct Source { /// The status of this source. pub status: GenericStatus, /// The name of the file uploaded. pub file_name: String, /// An MD5 hash of the uploaded file. pub md5: String, /// The number of bytes of the source. pub size: u64, } }