message_displayed.rs

 1// Copyright (c) 2024 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
 9use crate::ns;
10use crate::stanza_id::StanzaId;
11
12/// Mention that a particular message has been displayed by at least one client.
13#[derive(FromXml, AsXml, PartialEq, Debug, Clone)]
14#[xml(namespace = ns::MDS, name = "displayed")]
15pub struct Displayed {
16    /// Reference to the message having been displayed.
17    #[xml(child)]
18    pub stanza_id: StanzaId,
19}