#[non_exhaustive]pub struct Company {
pub company_id: i64,
pub name: String,
pub isin: Option<String>,
pub primary_listing: Option<Listing>,
pub confidence: Option<f64>,
pub role: Option<CompanyRole>,
pub relevance: Option<f64>,
}Expand description
A company 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.company_id: i64Company id; join key to companies().get() and EventTag::company_ids.
name: StringName.
isin: Option<String>ISIN.
primary_listing: Option<Listing>Primary listing; None for private companies.
confidence: Option<f64>Tagging confidence.
role: Option<CompanyRole>Position in the story (open); None for articles tagged without roles.
relevance: Option<f64>Aboutness, 0 to 1; None for articles tagged without roles.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Company
impl<'de> Deserialize<'de> for Company
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 Company
Auto Trait Implementations§
impl Forget for Company
impl Freeze for Company
impl Move for Company
impl RefUnwindSafe for Company
impl Send for Companywhere
RawVecInner: Send,
impl Sync for Companywhere
RawVecInner: Sync,
impl Unpin for Company
impl UnsafeUnpin for Company
impl UnwindSafe for Companywhere
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