xmpp-parsers: Convert pubsub’s Default to xso
This commit is contained in:
parent
5b5df16ac9
commit
01a61c6099
1 changed files with 11 additions and 11 deletions
|
|
@ -64,17 +64,17 @@ pub struct Create {
|
||||||
pub node: Option<NodeName>,
|
pub node: Option<NodeName>,
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_element!(
|
/// Request for a default node configuration.
|
||||||
/// Request for a default node configuration.
|
#[derive(FromXml, AsXml, PartialEq, Debug, Clone)]
|
||||||
Default, "default", PUBSUB,
|
#[xml(namespace = ns::PUBSUB, name = "default")]
|
||||||
attributes: [
|
pub struct Default {
|
||||||
/// The node targeted by this request, otherwise the entire service.
|
/// The node targeted by this request, otherwise the entire service.
|
||||||
node: Option<NodeName> = "node",
|
#[xml(attribute(default))]
|
||||||
|
pub node: Option<NodeName>,
|
||||||
// TODO: do we really want to support collection nodes?
|
// TODO: do we really want to support collection nodes?
|
||||||
// type: Option<String> = "type",
|
// #[xml(attribute(default, name = "type"))]
|
||||||
]
|
// type_: Option<String>,
|
||||||
);
|
}
|
||||||
|
|
||||||
generate_element!(
|
generate_element!(
|
||||||
/// A request for a list of items.
|
/// A request for a list of items.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue