Remove de/serialize bounds from StrippedStateContent.
See https://github.com/serde-rs/serde/issues/890.
This commit is contained in:
parent
edefffe220
commit
c928c9bafc
@ -65,9 +65,8 @@ pub enum StrippedState {
|
||||
|
||||
/// A "stripped-down" version of a core state event.
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct StrippedStateContent<C> where C: for<'a> Deserialize<'a> + Serialize {
|
||||
pub struct StrippedStateContent<C> {
|
||||
/// Data specific to the event type.
|
||||
#[serde(bound(deserialize = ""))]
|
||||
pub content: C,
|
||||
/// The type of the event.
|
||||
#[serde(rename="type")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user