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)] #[derive(Debug, Clone)]
pub struct Item { pub struct Item {
payload: Option<Element>, pub payload: Option<Element>,
node: Option<NodeName>, pub node: Option<NodeName>,
id: Option<ItemId>, pub id: Option<ItemId>,
publisher: Option<Jid>, pub publisher: Option<Jid>,
} }
impl TryFrom<Element> for Item { impl TryFrom<Element> for Item {