parsers: make inner pieces of bind.rs structs accessible
This commit is contained in:
parent
559159d458
commit
f78ea06bfb
2 changed files with 4 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
|
||||||
easily construct it (!660)
|
easily construct it (!660)
|
||||||
- jingle_rtp::Description gained a bandwidth child.
|
- jingle_rtp::Description gained a bandwidth child.
|
||||||
- Fix cargo test for the disable-validation and component features.
|
- 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:
|
Version 0.22.0:
|
||||||
2025-10-28 pep <pep@bouah.net>
|
2025-10-28 pep <pep@bouah.net>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ use jid::{FullJid, Jid};
|
||||||
pub struct BindFeature {
|
pub struct BindFeature {
|
||||||
/// Present if bind is required.
|
/// Present if bind is required.
|
||||||
#[xml(flag)]
|
#[xml(flag)]
|
||||||
required: bool,
|
pub required: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The request for resource binding, which is the process by which a client
|
/// 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
|
/// If this is None, we request no particular resource, and a random one
|
||||||
/// will be affected by the server.
|
/// will be affected by the server.
|
||||||
#[xml(extract(default, fields(text(type_ = String))))]
|
#[xml(extract(default, fields(text(type_ = String))))]
|
||||||
resource: Option<String>,
|
pub resource: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BindQuery {
|
impl BindQuery {
|
||||||
|
|
@ -51,7 +51,7 @@ impl IqSetPayload for BindQuery {}
|
||||||
pub struct BindResponse {
|
pub struct BindResponse {
|
||||||
/// The full JID returned by the server for this client.
|
/// The full JID returned by the server for this client.
|
||||||
#[xml(extract(fields(text(type_ = FullJid))))]
|
#[xml(extract(fields(text(type_ = FullJid))))]
|
||||||
jid: FullJid,
|
pub jid: FullJid,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IqResultPayload for BindResponse {}
|
impl IqResultPayload for BindResponse {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue