pubsub: Make item fields public.
This commit is contained in:
parent
33ac338e3e
commit
c6215a9fd0
1 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue