Trait github_rest::model::event_types::Event
source · pub trait Event<'de>: Serialize + Deserialize<'de> {
type Origin: Serialize + Deserialize<'de>;
// Provided method
fn origin(&self) -> Option<Self::Origin> { ... }
}
Expand description
The base trait used to represent different types of events. This will eventually have some subtraits with convenience methods.
All event types implement this.