Skip to content

Commit fda9e43

Browse files
Bump serde-xml-rs from 0.7.1 to 0.8.1 (#327)
* Bump serde-xml-rs from 0.7.1 to 0.8.1 Bumps [serde-xml-rs](https://github.com/RReverser/serde-xml-rs) from 0.7.1 to 0.8.1. - [Release notes](https://github.com/RReverser/serde-xml-rs/releases) - [Commits](RReverser/serde-xml-rs@0.7.1...0.8.1) --- updated-dependencies: - dependency-name: serde-xml-rs dependency-version: 0.8.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Changes for new version of serde-xml-rs. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Walbran <[email protected]>
1 parent 5a5fe39 commit fda9e43

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bluez-async/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ futures = "0.3.31"
2121
itertools = "0.14.0"
2222
log = "0.4.27"
2323
serde = { version = "1.0.219", features = ["derive"] }
24-
serde-xml-rs = "0.7.1"
24+
serde-xml-rs = "0.8.1"
2525
thiserror = "2.0.12"
2626
tokio = { version = "1.45.1", features = ["rt"] }
2727
uuid = "1.16.0"

bluez-async/src/introspect.rs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use super::BluetoothError;
55

66
#[derive(Clone, Debug, Deserialize, PartialEq)]
77
pub struct Node {
8+
#[serde(rename = "@name")]
89
pub name: Option<String>,
910
#[serde(rename = "interface", default)]
1011
pub interfaces: Vec<Interface>,
@@ -14,6 +15,7 @@ pub struct Node {
1415

1516
#[derive(Clone, Debug, Deserialize, PartialEq)]
1617
pub struct Interface {
18+
#[serde(rename = "@name")]
1719
pub name: String,
1820
#[serde(rename = "method", default)]
1921
pub methods: Vec<Method>,
@@ -27,6 +29,7 @@ pub struct Interface {
2729

2830
#[derive(Clone, Debug, Deserialize, PartialEq)]
2931
pub struct Method {
32+
#[serde(rename = "@name")]
3033
pub name: String,
3134
#[serde(rename = "arg", default)]
3235
pub args: Vec<MethodArg>,
@@ -36,6 +39,7 @@ pub struct Method {
3639

3740
#[derive(Clone, Debug, Deserialize, PartialEq)]
3841
pub struct Signal {
42+
#[serde(rename = "@name")]
3943
pub name: String,
4044
#[serde(rename = "arg", default)]
4145
pub args: Vec<SignalArg>,
@@ -45,31 +49,35 @@ pub struct Signal {
4549

4650
#[derive(Clone, Debug, Deserialize, PartialEq)]
4751
pub struct Property {
52+
#[serde(rename = "@name")]
4853
pub name: String,
49-
#[serde(rename = "type")]
54+
#[serde(rename = "@type")]
5055
pub dbustype: String,
56+
#[serde(rename = "@access")]
5157
pub access: Access,
5258
#[serde(rename = "annotation", default)]
5359
pub annotations: Vec<Annotation>,
5460
}
5561

5662
#[derive(Clone, Debug, Deserialize, PartialEq)]
5763
pub struct MethodArg {
64+
#[serde(rename = "@name")]
5865
pub name: Option<String>,
59-
#[serde(rename = "type")]
66+
#[serde(rename = "@type")]
6067
pub dbustype: String,
61-
#[serde(default = "default_method_arg_direction")]
68+
#[serde(rename = "@direction", default = "default_method_arg_direction")]
6269
pub direction: Direction,
6370
#[serde(rename = "annotation", default)]
6471
pub annotations: Vec<Annotation>,
6572
}
6673

6774
#[derive(Clone, Debug, Deserialize, PartialEq)]
6875
pub struct SignalArg {
76+
#[serde(rename = "@name")]
6977
pub name: Option<String>,
70-
#[serde(rename = "type")]
78+
#[serde(rename = "@type")]
7179
pub dbustype: String,
72-
#[serde(default = "default_signal_arg_direction")]
80+
#[serde(rename = "@direction", default = "default_signal_arg_direction")]
7381
pub direction: Direction,
7482
#[serde(rename = "annotation", default)]
7583
pub annotations: Vec<Annotation>,
@@ -85,7 +93,9 @@ fn default_signal_arg_direction() -> Direction {
8593

8694
#[derive(Clone, Debug, Deserialize, PartialEq)]
8795
pub struct Annotation {
96+
#[serde(rename = "@name")]
8897
pub name: String,
98+
#[serde(rename = "@value")]
8999
pub value: String,
90100
}
91101

0 commit comments

Comments
 (0)