pubsub: Move common attributes to the module.
This commit is contained in:
parent
b37a8da906
commit
688ae145be
2 changed files with 5 additions and 3 deletions
|
@ -16,9 +16,7 @@ use ns;
|
||||||
|
|
||||||
use data_forms::DataForm;
|
use data_forms::DataForm;
|
||||||
|
|
||||||
generate_id!(NodeName);
|
use pubsub::{NodeName, ItemId, SubscriptionId};
|
||||||
generate_id!(ItemId);
|
|
||||||
generate_id!(SubscriptionId);
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Item {
|
pub struct Item {
|
||||||
|
|
|
@ -7,3 +7,7 @@
|
||||||
pub mod event;
|
pub mod event;
|
||||||
|
|
||||||
pub use self::event::PubSubEvent;
|
pub use self::event::PubSubEvent;
|
||||||
|
|
||||||
|
generate_id!(NodeName);
|
||||||
|
generate_id!(ItemId);
|
||||||
|
generate_id!(SubscriptionId);
|
||||||
|
|
Loading…
Reference in a new issue