pub trait GeoCoordinatesTrait {
// Required methods
fn get_address(&self) -> &[AddressProperty];
fn take_address(&mut self) -> Vec<AddressProperty>;
fn get_address_country(&self) -> &[AddressCountryProperty];
fn take_address_country(&mut self) -> Vec<AddressCountryProperty>;
fn get_elevation(&self) -> &[ElevationProperty];
fn take_elevation(&mut self) -> Vec<ElevationProperty>;
fn get_latitude(&self) -> &[LatitudeProperty];
fn take_latitude(&mut self) -> Vec<LatitudeProperty>;
fn get_longitude(&self) -> &[LongitudeProperty];
fn take_longitude(&mut self) -> Vec<LongitudeProperty>;
fn get_postal_code(&self) -> &[PostalCodeProperty];
fn take_postal_code(&mut self) -> Vec<PostalCodeProperty>;
}
Expand description
This trait is for properties from https://schema.org/GeoCoordinates.
Required Methods§
sourcefn get_address(&self) -> &[AddressProperty]
fn get_address(&self) -> &[AddressProperty]
Get https://schema.org/address from Self
as borrowed slice.
sourcefn take_address(&mut self) -> Vec<AddressProperty>
fn take_address(&mut self) -> Vec<AddressProperty>
Take https://schema.org/address from Self
as owned vector.
sourcefn get_address_country(&self) -> &[AddressCountryProperty]
fn get_address_country(&self) -> &[AddressCountryProperty]
Get https://schema.org/addressCountry from Self
as borrowed slice.
sourcefn take_address_country(&mut self) -> Vec<AddressCountryProperty>
fn take_address_country(&mut self) -> Vec<AddressCountryProperty>
Take https://schema.org/addressCountry from Self
as owned vector.
sourcefn get_elevation(&self) -> &[ElevationProperty]
fn get_elevation(&self) -> &[ElevationProperty]
Get https://schema.org/elevation from Self
as borrowed slice.
sourcefn take_elevation(&mut self) -> Vec<ElevationProperty>
fn take_elevation(&mut self) -> Vec<ElevationProperty>
Take https://schema.org/elevation from Self
as owned vector.
sourcefn get_latitude(&self) -> &[LatitudeProperty]
fn get_latitude(&self) -> &[LatitudeProperty]
Get https://schema.org/latitude from Self
as borrowed slice.
sourcefn take_latitude(&mut self) -> Vec<LatitudeProperty>
fn take_latitude(&mut self) -> Vec<LatitudeProperty>
Take https://schema.org/latitude from Self
as owned vector.
sourcefn get_longitude(&self) -> &[LongitudeProperty]
fn get_longitude(&self) -> &[LongitudeProperty]
Get https://schema.org/longitude from Self
as borrowed slice.
sourcefn take_longitude(&mut self) -> Vec<LongitudeProperty>
fn take_longitude(&mut self) -> Vec<LongitudeProperty>
Take https://schema.org/longitude from Self
as owned vector.
sourcefn get_postal_code(&self) -> &[PostalCodeProperty]
fn get_postal_code(&self) -> &[PostalCodeProperty]
Get https://schema.org/postalCode from Self
as borrowed slice.
sourcefn take_postal_code(&mut self) -> Vec<PostalCodeProperty>
fn take_postal_code(&mut self) -> Vec<PostalCodeProperty>
Take https://schema.org/postalCode from Self
as owned vector.