diff --git a/Cargo.lock b/Cargo.lock index 96f9b00..06f9891 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -581,7 +581,7 @@ dependencies = [ [[package]] name = "robotevents" -version = "0.2.9" +version = "0.3.0" dependencies = [ "itertools", "reqwest", diff --git a/Cargo.toml b/Cargo.toml index a38b159..4d901c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "Wrapper for the RobotEvents.com v2 API." repository = "https://github.com/LemLib/robotevents-rs/" license-file = "LICENSE.md" readme = "README.md" -version = "0.2.9" +version = "0.3.0" edition = "2021" authors=["tropix126", "BattleCh1cken"] categories = ["science::robotics", "api-bindings", "web-programming::http-client"] diff --git a/src/client.rs b/src/client.rs index e235d0a..1b8a0ba 100644 --- a/src/client.rs +++ b/src/client.rs @@ -17,7 +17,7 @@ pub struct RobotEvents { pub req_client: reqwest::Client, } -pub const V1_API_BASE: &str = "https://www.robotevents.com/api/v1"; +pub const V1_API_BASE: &str = "https://www.robotevents.com/api"; pub const V2_API_BASE: &str = "https://www.robotevents.com/api/v2"; impl RobotEvents { diff --git a/src/schema/location.rs b/src/schema/location.rs index 6788e7f..acbafa3 100644 --- a/src/schema/location.rs +++ b/src/schema/location.rs @@ -6,14 +6,14 @@ pub struct Location { pub address_1: String, pub address_2: Option, pub city: String, - pub region: String, - pub postcode: String, + pub region: Option, + pub postcode: Option, pub country: String, pub coordinates: Coordinates, } #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct Coordinates { - pub lat: f32, - pub lon: f32, + pub lat: Option, + pub lon: Option, }