pub trait DrugClassTrait {
    // Required methods
    fn get_drug(&self) -> &[DrugProperty];
    fn take_drug(&mut self) -> Vec<DrugProperty>;
}
Expand description

This trait is for properties from https://schema.org/DrugClass.

Required Methods§

source

fn get_drug(&self) -> &[DrugProperty]

Get https://schema.org/drug from Self as borrowed slice.

source

fn take_drug(&mut self) -> Vec<DrugProperty>

Take https://schema.org/drug from Self as owned vector.

Implementors§