Make UDID an optional field on pairing file

This commit is contained in:
Jackson Coxson
2025-01-13 10:23:19 -07:00
parent 1c28b3448f
commit d9aa9c1798
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@@ -382,7 +382,7 @@ dependencies = [
[[package]] [[package]]
name = "idevice" name = "idevice"
version = "0.1.3" version = "0.1.5"
dependencies = [ dependencies = [
"env_logger", "env_logger",
"log", "log",

View File

@@ -2,7 +2,7 @@
name = "idevice" name = "idevice"
description = "A Rust library to interact with services on iOS devices." description = "A Rust library to interact with services on iOS devices."
authors = ["Jackson Coxson"] authors = ["Jackson Coxson"]
version = "0.1.4" version = "0.1.5"
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"
documentation = "https://docs.rs/idevice" documentation = "https://docs.rs/idevice"

View File

@@ -21,7 +21,7 @@ pub struct PairingFile {
pub host_id: String, pub host_id: String,
pub escrow_bag: Vec<u8>, pub escrow_bag: Vec<u8>,
pub wifi_mac_address: String, pub wifi_mac_address: String,
pub udid: String, pub udid: Option<String>,
} }
#[derive(Serialize, Deserialize, Debug, Clone)] #[derive(Serialize, Deserialize, Debug, Clone)]
@@ -40,7 +40,7 @@ struct RawPairingFile {
#[serde(rename = "WiFiMACAddress")] #[serde(rename = "WiFiMACAddress")]
wifi_mac_address: String, wifi_mac_address: String,
#[serde(rename = "UDID")] #[serde(rename = "UDID")]
udid: String, udid: Option<String>,
} }
impl PairingFile { impl PairingFile {