diff --git a/parsers/ChangeLog b/parsers/ChangeLog index b3e6e95b..81c4d33c 100644 --- a/parsers/ChangeLog +++ b/parsers/ChangeLog @@ -30,6 +30,7 @@ XXXX-YY-ZZ RELEASER easily construct it (!660) - jingle_rtp::Description gained a bandwidth child. - Fix cargo test for the disable-validation and component features. + - Structs of the bind module now have accessible inner pieces (!675). Version 0.22.0: 2025-10-28 pep diff --git a/parsers/src/bind.rs b/parsers/src/bind.rs index 7d4d7012..947ba615 100644 --- a/parsers/src/bind.rs +++ b/parsers/src/bind.rs @@ -16,7 +16,7 @@ use jid::{FullJid, Jid}; pub struct BindFeature { /// Present if bind is required. #[xml(flag)] - required: bool, + pub required: bool, } /// The request for resource binding, which is the process by which a client @@ -31,7 +31,7 @@ pub struct BindQuery { /// If this is None, we request no particular resource, and a random one /// will be affected by the server. #[xml(extract(default, fields(text(type_ = String))))] - resource: Option, + pub resource: Option, } impl BindQuery { @@ -51,7 +51,7 @@ impl IqSetPayload for BindQuery {} pub struct BindResponse { /// The full JID returned by the server for this client. #[xml(extract(fields(text(type_ = FullJid))))] - jid: FullJid, + pub jid: FullJid, } impl IqResultPayload for BindResponse {}