feat(stanza): impl Clone for Stanza types

This commit is contained in:
cel 🌸 2025-02-25 23:30:27 +00:00
parent 4dac2dbe1d
commit 861db1197d
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ use crate::{
use super::XMLNS;
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Iq {
pub from: Option<JID>,
pub id: String,

View File

@ -8,7 +8,7 @@ use peanuts::{
use super::XMLNS;
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Message {
pub from: Option<JID>,
pub id: Option<String>,

View File

@ -16,7 +16,7 @@ pub mod presence;
pub const XMLNS: &str = "jabber:client";
/// TODO: End tag
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum Stanza {
Message(Message),
Presence(Presence),

View File

@ -8,7 +8,7 @@ use peanuts::{
use super::{error::Error, XMLNS};
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Presence {
pub from: Option<JID>,
pub id: Option<String>,