#[non_exhaustive]pub struct EventTag {
pub type: EventType,
pub direction: Option<EventDirection>,
pub importance: Option<Importance>,
pub confidence: Option<f64>,
pub company_ids: Option<Vec<i64>>,
}Expand description
An event tagged in an article.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type: EventTypeEvent type (open).
direction: Option<EventDirection>Direction (open).
importance: Option<Importance>Importance (open, ordered).
confidence: Option<f64>Confidence.
company_ids: Option<Vec<i64>>Ids of the companies the event is about. None when absent: it is only sent when the
companies block is in the same payload.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventTag
impl<'de> Deserialize<'de> for EventTag
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
impl StructuralPartialEq for EventTag
Auto Trait Implementations§
impl Forget for EventTag
impl Freeze for EventTag
impl Move for EventTag
impl RefUnwindSafe for EventTag
impl Send for EventTagwhere
RawVecInner: Send,
impl Sync for EventTagwhere
RawVecInner: Sync,
impl Unpin for EventTag
impl UnsafeUnpin for EventTag
impl UnwindSafe for EventTagwhere
RawVecInner: UnwindSafe,
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