feat(stanza): impl Clone for Stanza types
This commit is contained in:
parent
4dac2dbe1d
commit
861db1197d
|
@ -15,7 +15,7 @@ use crate::{
|
|||
|
||||
use super::XMLNS;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Iq {
|
||||
pub from: Option<JID>,
|
||||
pub id: String,
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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>,
|
||||
|
|
Loading…
Reference in New Issue