pub struct RawFeedEvent {
pub id: EventId,
pub timestamp: DateTime<Utc>,
pub source: FeedSource,
pub feed_schema: SchemaKey,
pub location: Option<GeoPoint>,
pub payload: Value,
}Expand description
A raw event arriving from an external feed, before normalisation.
Fields§
§id: EventIdUnique event id.
timestamp: DateTime<Utc>When the event was produced by the source.
source: FeedSourceWhich feed produced this event.
feed_schema: SchemaKeySchema describing the payload format.
location: Option<GeoPoint>Optional geographic location.
payload: ValueOpaque JSON payload from the feed.
Trait Implementations§
Source§impl Clone for RawFeedEvent
impl Clone for RawFeedEvent
Source§fn clone(&self) -> RawFeedEvent
fn clone(&self) -> RawFeedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawFeedEvent
impl Debug for RawFeedEvent
Source§impl<'de> Deserialize<'de> for RawFeedEvent
impl<'de> Deserialize<'de> for RawFeedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RawFeedEvent
impl RefUnwindSafe for RawFeedEvent
impl Send for RawFeedEvent
impl Sync for RawFeedEvent
impl Unpin for RawFeedEvent
impl UnsafeUnpin for RawFeedEvent
impl UnwindSafe for RawFeedEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more