pub trait InfectiousDiseaseTrait {
// Required methods
fn get_infectious_agent(&self) -> &[InfectiousAgentProperty];
fn take_infectious_agent(&mut self) -> Vec<InfectiousAgentProperty>;
fn get_infectious_agent_class(&self) -> &[InfectiousAgentClassProperty];
fn take_infectious_agent_class(
&mut self
) -> Vec<InfectiousAgentClassProperty>;
fn get_transmission_method(&self) -> &[TransmissionMethodProperty];
fn take_transmission_method(&mut self) -> Vec<TransmissionMethodProperty>;
}
Expand description
This trait is for properties from https://schema.org/InfectiousDisease.
Required Methods§
sourcefn get_infectious_agent(&self) -> &[InfectiousAgentProperty]
fn get_infectious_agent(&self) -> &[InfectiousAgentProperty]
Get https://schema.org/infectiousAgent from Self
as borrowed slice.
sourcefn take_infectious_agent(&mut self) -> Vec<InfectiousAgentProperty>
fn take_infectious_agent(&mut self) -> Vec<InfectiousAgentProperty>
Take https://schema.org/infectiousAgent from Self
as owned vector.
sourcefn get_infectious_agent_class(&self) -> &[InfectiousAgentClassProperty]
fn get_infectious_agent_class(&self) -> &[InfectiousAgentClassProperty]
Get https://schema.org/infectiousAgentClass from Self
as borrowed slice.
sourcefn take_infectious_agent_class(&mut self) -> Vec<InfectiousAgentClassProperty>
fn take_infectious_agent_class(&mut self) -> Vec<InfectiousAgentClassProperty>
Take https://schema.org/infectiousAgentClass from Self
as owned vector.
sourcefn get_transmission_method(&self) -> &[TransmissionMethodProperty]
fn get_transmission_method(&self) -> &[TransmissionMethodProperty]
Get https://schema.org/transmissionMethod from Self
as borrowed slice.
sourcefn take_transmission_method(&mut self) -> Vec<TransmissionMethodProperty>
fn take_transmission_method(&mut self) -> Vec<TransmissionMethodProperty>
Take https://schema.org/transmissionMethod from Self
as owned vector.