Updated models
This commit is contained in:
+12
-2
@@ -1,6 +1,7 @@
|
||||
use std::default::Default;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
// mod models {
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct API {
|
||||
@@ -8,4 +9,13 @@ pub struct API {
|
||||
pub endpoint: String,
|
||||
pub version: String,
|
||||
}
|
||||
// }
|
||||
|
||||
impl Default for API {
|
||||
fn default() -> Self {
|
||||
API {
|
||||
url: String::from(""),
|
||||
endpoint: String::from(""),
|
||||
version: String::from(""),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user