Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:DefGuard/client into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
filipslezaklab committed Sep 19, 2023
2 parents e7de889 + 317f400 commit 14dc322
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,17 @@ pub fn device_config_to_location(device_config: DeviceConfig) -> Location {
allowed_ips: device_config.allowed_ips,
}
}
#[derive(Serialize, Deserialize)]
pub struct InstanceResponse {
// uuid
pub id: String,
pub name: String,
pub url: String,
}

#[derive(Serialize, Deserialize)]
pub struct CreateDeviceResponse {
instance: Instance,
instance: InstanceResponse,
configs: Vec<DeviceConfig>,
device: Device,
}
Expand All @@ -75,7 +82,7 @@ pub async fn save_device_config(
.map_err(|err| err.to_string())?;
let mut instance = Instance::new(
response.instance.name,
response.instance.uuid,
response.instance.id,
response.instance.url,
);
instance
Expand Down

0 comments on commit 14dc322

Please sign in to comment.