Trait schema_org_types::DrugCostTrait
source · pub trait DrugCostTrait {
// Required methods
fn get_applicable_location(&self) -> &[ApplicableLocationProperty];
fn take_applicable_location(&mut self) -> Vec<ApplicableLocationProperty>;
fn get_cost_category(&self) -> &[CostCategoryProperty];
fn take_cost_category(&mut self) -> Vec<CostCategoryProperty>;
fn get_cost_currency(&self) -> &[CostCurrencyProperty];
fn take_cost_currency(&mut self) -> Vec<CostCurrencyProperty>;
fn get_cost_origin(&self) -> &[CostOriginProperty];
fn take_cost_origin(&mut self) -> Vec<CostOriginProperty>;
fn get_cost_per_unit(&self) -> &[CostPerUnitProperty];
fn take_cost_per_unit(&mut self) -> Vec<CostPerUnitProperty>;
fn get_drug_unit(&self) -> &[DrugUnitProperty];
fn take_drug_unit(&mut self) -> Vec<DrugUnitProperty>;
}
Expand description
This trait is for properties from https://schema.org/DrugCost.
Required Methods§
sourcefn get_applicable_location(&self) -> &[ApplicableLocationProperty]
fn get_applicable_location(&self) -> &[ApplicableLocationProperty]
Get https://schema.org/applicableLocation from Self
as borrowed slice.
sourcefn take_applicable_location(&mut self) -> Vec<ApplicableLocationProperty>
fn take_applicable_location(&mut self) -> Vec<ApplicableLocationProperty>
Take https://schema.org/applicableLocation from Self
as owned vector.
sourcefn get_cost_category(&self) -> &[CostCategoryProperty]
fn get_cost_category(&self) -> &[CostCategoryProperty]
Get https://schema.org/costCategory from Self
as borrowed slice.
sourcefn take_cost_category(&mut self) -> Vec<CostCategoryProperty>
fn take_cost_category(&mut self) -> Vec<CostCategoryProperty>
Take https://schema.org/costCategory from Self
as owned vector.
sourcefn get_cost_currency(&self) -> &[CostCurrencyProperty]
fn get_cost_currency(&self) -> &[CostCurrencyProperty]
Get https://schema.org/costCurrency from Self
as borrowed slice.
sourcefn take_cost_currency(&mut self) -> Vec<CostCurrencyProperty>
fn take_cost_currency(&mut self) -> Vec<CostCurrencyProperty>
Take https://schema.org/costCurrency from Self
as owned vector.
sourcefn get_cost_origin(&self) -> &[CostOriginProperty]
fn get_cost_origin(&self) -> &[CostOriginProperty]
Get https://schema.org/costOrigin from Self
as borrowed slice.
sourcefn take_cost_origin(&mut self) -> Vec<CostOriginProperty>
fn take_cost_origin(&mut self) -> Vec<CostOriginProperty>
Take https://schema.org/costOrigin from Self
as owned vector.
sourcefn get_cost_per_unit(&self) -> &[CostPerUnitProperty]
fn get_cost_per_unit(&self) -> &[CostPerUnitProperty]
Get https://schema.org/costPerUnit from Self
as borrowed slice.
sourcefn take_cost_per_unit(&mut self) -> Vec<CostPerUnitProperty>
fn take_cost_per_unit(&mut self) -> Vec<CostPerUnitProperty>
Take https://schema.org/costPerUnit from Self
as owned vector.
sourcefn get_drug_unit(&self) -> &[DrugUnitProperty]
fn get_drug_unit(&self) -> &[DrugUnitProperty]
Get https://schema.org/drugUnit from Self
as borrowed slice.
sourcefn take_drug_unit(&mut self) -> Vec<DrugUnitProperty>
fn take_drug_unit(&mut self) -> Vec<DrugUnitProperty>
Take https://schema.org/drugUnit from Self
as owned vector.