Trait schema_org_types::TravelActionTrait
source · pub trait TravelActionTrait {
// Required methods
fn get_distance(&self) -> &[DistanceProperty];
fn take_distance(&mut self) -> Vec<DistanceProperty>;
}
Expand description
This trait is for properties from https://schema.org/TravelAction.
Required Methods§
sourcefn get_distance(&self) -> &[DistanceProperty]
fn get_distance(&self) -> &[DistanceProperty]
Get https://schema.org/distance from Self
as borrowed slice.
sourcefn take_distance(&mut self) -> Vec<DistanceProperty>
fn take_distance(&mut self) -> Vec<DistanceProperty>
Take https://schema.org/distance from Self
as owned vector.