[][src]Trait pushevent::SerializableEvent

pub trait SerializableEvent: Sync + Send + 'static {
    fn serialize(&self) -> String;
}

SerializableEvent denotes structs that are able to serialize to some String. This is used as mainly a marker trait, underneath serialize you most likely would want to use serde.

Required methods

fn serialize(&self) -> String

Returns a String of the serialized object

Loading content...

Implementors

Loading content...