re-export ruma Event trait through core pdu
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
e7e606300f
commit
6c9ecb031a
3 changed files with 6 additions and 4 deletions
|
@ -17,7 +17,7 @@ pub use ::tracing;
|
||||||
pub use config::Config;
|
pub use config::Config;
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
pub use info::{rustc_flags_capture, version, version::version};
|
pub use info::{rustc_flags_capture, version, version::version};
|
||||||
pub use pdu::{PduBuilder, PduCount, PduEvent};
|
pub use pdu::{Event, PduBuilder, PduCount, PduEvent};
|
||||||
pub use server::Server;
|
pub use server::Server;
|
||||||
pub use utils::{ctor, dtor, implement, result, result::Result};
|
pub use utils::{ctor, dtor, implement, result, result::Result};
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use ruma::{events::TimelineEventType, state_res, EventId, MilliSecondsSinceUnixEpoch, RoomId, UserId};
|
pub use ruma::state_res::Event;
|
||||||
|
use ruma::{events::TimelineEventType, EventId, MilliSecondsSinceUnixEpoch, RoomId, UserId};
|
||||||
use serde_json::value::RawValue as RawJsonValue;
|
use serde_json::value::RawValue as RawJsonValue;
|
||||||
|
|
||||||
use super::PduEvent;
|
use super::PduEvent;
|
||||||
|
|
||||||
impl state_res::Event for PduEvent {
|
impl Event for PduEvent {
|
||||||
type Id = Arc<EventId>;
|
type Id = Arc<EventId>;
|
||||||
|
|
||||||
fn event_id(&self) -> &Self::Id { &self.event_id }
|
fn event_id(&self) -> &Self::Id { &self.event_id }
|
|
@ -1,10 +1,10 @@
|
||||||
mod builder;
|
mod builder;
|
||||||
mod content;
|
mod content;
|
||||||
mod count;
|
mod count;
|
||||||
|
mod event;
|
||||||
mod filter;
|
mod filter;
|
||||||
mod id;
|
mod id;
|
||||||
mod redact;
|
mod redact;
|
||||||
mod state_res;
|
|
||||||
mod strip;
|
mod strip;
|
||||||
mod unsigned;
|
mod unsigned;
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ use serde_json::value::RawValue as RawJsonValue;
|
||||||
pub use self::{
|
pub use self::{
|
||||||
builder::{Builder, Builder as PduBuilder},
|
builder::{Builder, Builder as PduBuilder},
|
||||||
count::PduCount,
|
count::PduCount,
|
||||||
|
event::Event,
|
||||||
id::*,
|
id::*,
|
||||||
};
|
};
|
||||||
use crate::Result;
|
use crate::Result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue