mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
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