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§

source

fn get_distance(&self) -> &[DistanceProperty]

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

source

fn take_distance(&mut self) -> Vec<DistanceProperty>

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

Implementors§