events: Re-export the Change struct publicly
This commit is contained in:
parent
3ddc4de758
commit
22a0729442
@ -21,7 +21,7 @@ use crate::{
|
|||||||
mod change;
|
mod change;
|
||||||
|
|
||||||
use self::change::membership_change;
|
use self::change::membership_change;
|
||||||
pub use self::change::{MembershipChange, MembershipDetails};
|
pub use self::change::{Change, MembershipChange, MembershipDetails};
|
||||||
|
|
||||||
/// The content of an `m.room.member` event.
|
/// The content of an `m.room.member` event.
|
||||||
///
|
///
|
||||||
|
@ -61,6 +61,7 @@ pub enum MembershipChange<'a> {
|
|||||||
|
|
||||||
/// A simple representation of a change, containing old and new data.
|
/// A simple representation of a change, containing old and new data.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
#[allow(clippy::exhaustive_structs)]
|
||||||
pub struct Change<T> {
|
pub struct Change<T> {
|
||||||
/// The old data.
|
/// The old data.
|
||||||
pub old: T,
|
pub old: T,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user