Port everything over to AsXml
This commit is contained in:
parent
4910b01244
commit
ccf38cdf9b
64 changed files with 848 additions and 371 deletions
|
|
@ -4,7 +4,7 @@
|
|||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
use xso::{FromXml, IntoXml};
|
||||
use xso::{AsXml, FromXml};
|
||||
|
||||
use jid::Jid;
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ use crate::iq::{IqGetPayload, IqResultPayload};
|
|||
use crate::ns;
|
||||
|
||||
/// Request from a client to stringprep/PRECIS a string into a JID.
|
||||
#[derive(FromXml, IntoXml, PartialEq, Debug, Clone)]
|
||||
#[derive(FromXml, AsXml, PartialEq, Debug, Clone)]
|
||||
#[xml(namespace = ns::JID_PREP, name = "jid")]
|
||||
pub struct JidPrepQuery {
|
||||
/// The potential JID.
|
||||
|
|
@ -30,7 +30,7 @@ impl JidPrepQuery {
|
|||
}
|
||||
|
||||
/// Response from the server with the stringprep’d/PRECIS’d JID.
|
||||
#[derive(FromXml, IntoXml, PartialEq, Debug, Clone)]
|
||||
#[derive(FromXml, AsXml, PartialEq, Debug, Clone)]
|
||||
#[xml(namespace = ns::JID_PREP, name = "jid")]
|
||||
pub struct JidPrepResponse {
|
||||
/// The JID.
|
||||
|
|
|
|||
Loading…
Reference in a new issue