25 lines
748 B
Rust
25 lines
748 B
Rust
// Copyright (c) 2017 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
/// The `http://jabber.org/protocol/pubsub#event` protocol.
|
|
pub mod event;
|
|
|
|
/// The `http://jabber.org/protocol/pubsub` protocol.
|
|
pub mod pubsub;
|
|
|
|
pub use self::event::PubSubEvent;
|
|
pub use self::pubsub::PubSub;
|
|
|
|
generate_id!(NodeName);
|
|
generate_id!(ItemId);
|
|
generate_id!(SubscriptionId);
|
|
|
|
generate_attribute!(Subscription, "subscription", {
|
|
None => "none",
|
|
Pending => "pending",
|
|
Subscribed => "subscribed",
|
|
Unconfigured => "unconfigured",
|
|
}, Default = None);
|