pub struct AssetComposition {
pub current_assets_percent: Decimal,
pub cash_percent: Decimal,
pub ar_percent: Decimal,
pub inventory_percent: Decimal,
pub prepaid_percent: Decimal,
pub other_current_percent: Decimal,
pub ppe_percent: Decimal,
pub intangibles_percent: Decimal,
pub investments_percent: Decimal,
pub other_noncurrent_percent: Decimal,
}Expand description
Asset composition specification.
Fields§
§current_assets_percent: DecimalCurrent assets as percentage of total.
cash_percent: DecimalCash and equivalents as % of current assets.
ar_percent: DecimalAccounts receivable as % of current assets.
inventory_percent: DecimalInventory as % of current assets.
prepaid_percent: DecimalPrepaid expenses as % of current assets.
other_current_percent: DecimalOther current assets as % of current assets.
ppe_percent: DecimalProperty, plant, equipment as % of non-current assets.
intangibles_percent: DecimalIntangible assets as % of non-current assets.
investments_percent: DecimalInvestments as % of non-current assets.
other_noncurrent_percent: DecimalOther non-current assets as % of non-current assets.
Implementations§
Source§impl AssetComposition
impl AssetComposition
Sourcepub fn for_industry(industry: IndustryType) -> Self
pub fn for_industry(industry: IndustryType) -> Self
Get composition for a specific industry.
Sourcepub fn total_percentage(&self) -> Decimal
pub fn total_percentage(&self) -> Decimal
Get total percentage (should be 100%).
Trait Implementations§
Source§impl Clone for AssetComposition
impl Clone for AssetComposition
Source§fn clone(&self) -> AssetComposition
fn clone(&self) -> AssetComposition
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 AssetComposition
impl Debug for AssetComposition
Source§impl Default for AssetComposition
impl Default for AssetComposition
Source§impl<'de> Deserialize<'de> for AssetComposition
impl<'de> Deserialize<'de> for AssetComposition
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 AssetComposition
impl RefUnwindSafe for AssetComposition
impl Send for AssetComposition
impl Sync for AssetComposition
impl Unpin for AssetComposition
impl UnwindSafe for AssetComposition
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