#[non_exhaustive]pub struct CompanyRecord {
pub company_id: i64,
pub name: String,
pub country: Option<String>,
pub sector: Option<String>,
pub industry: Option<String>,
pub isins: Vec<String>,
pub primary_listing: Option<Listing>,
pub listings: Vec<Listing>,
pub updated_at: Option<String>,
/* private fields */
}Expand description
Company master data from companies().
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.
name: StringName.
country: Option<String>Country of domicile.
sector: Option<String>Sector.
industry: Option<String>Industry.
isins: Vec<String>ISINs.
primary_listing: Option<Listing>Primary listing; None for private companies.
listings: Vec<Listing>One listing per exchange, the primary first.
updated_at: Option<String>Last update, as sent.
Implementations§
Source§impl CompanyRecord
impl CompanyRecord
Sourcepub fn updated_at_time(&self) -> Option<SystemTime>
pub fn updated_at_time(&self) -> Option<SystemTime>
updated_at parsed strictly.
Sourcepub fn cache_info(&self) -> Option<&CacheInfo>
pub fn cache_info(&self) -> Option<&CacheInfo>
ETag data of a record from companies().get() or get_if_none_match(); None for
other records.
Trait Implementations§
Source§impl Clone for CompanyRecord
impl Clone for CompanyRecord
Source§impl Debug for CompanyRecord
impl Debug for CompanyRecord
Source§impl<'de> Deserialize<'de> for CompanyRecord
impl<'de> Deserialize<'de> for CompanyRecord
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
Source§impl PartialEq for CompanyRecord
impl PartialEq for CompanyRecord
Source§impl Serialize for CompanyRecord
impl Serialize for CompanyRecord
impl StructuralPartialEq for CompanyRecord
Auto Trait Implementations§
impl Forget for CompanyRecord
impl Freeze for CompanyRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Listing>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
impl Move for CompanyRecord
impl RefUnwindSafe for CompanyRecord
impl Send for CompanyRecord
impl Sync for CompanyRecord
impl Unpin for CompanyRecord
impl UnsafeUnpin for CompanyRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Listing>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
impl UnwindSafe for CompanyRecord
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