tokio_xmpp/stanzastream/error.rs
1// Copyright (c) 2019 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7use xso::{AsXml, FromXml};
8
9static NS: &str = "https://xmlns.xmpp.rs/stream-errors";
10
11/// Represents a parse error.
12///
13/// Details are found in the `<text/>`.
14#[derive(FromXml, AsXml, Debug)]
15#[xml(namespace = NS, name = "parse-error")]
16pub struct ParseError;