pubsub: Make item fields public.

This commit is contained in:
Emmanuel Gil Peyrot 2018-06-22 20:18:18 +02:00
parent 33ac338e3e
commit c6215a9fd0

View file

@ -20,10 +20,10 @@ use pubsub::{NodeName, ItemId, Subscription, SubscriptionId};
#[derive(Debug, Clone)]
pub struct Item {
payload: Option<Element>,
node: Option<NodeName>,
id: Option<ItemId>,
publisher: Option<Jid>,
pub payload: Option<Element>,
pub node: Option<NodeName>,
pub id: Option<ItemId>,
pub publisher: Option<Jid>,
}
impl TryFrom<Element> for Item {