Trait schema_org_types::GeoShapeTrait
source · pub trait GeoShapeTrait {
Show 16 methods
// 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_box(&self) -> &[BoxProperty];
fn take_box(&mut self) -> Vec<BoxProperty>;
fn get_circle(&self) -> &[CircleProperty];
fn take_circle(&mut self) -> Vec<CircleProperty>;
fn get_elevation(&self) -> &[ElevationProperty];
fn take_elevation(&mut self) -> Vec<ElevationProperty>;
fn get_line(&self) -> &[LineProperty];
fn take_line(&mut self) -> Vec<LineProperty>;
fn get_polygon(&self) -> &[PolygonProperty];
fn take_polygon(&mut self) -> Vec<PolygonProperty>;
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/GeoShape.
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_box(&self) -> &[BoxProperty]
fn get_box(&self) -> &[BoxProperty]
Get https://schema.org/box from Self
as borrowed slice.
sourcefn take_box(&mut self) -> Vec<BoxProperty>
fn take_box(&mut self) -> Vec<BoxProperty>
Take https://schema.org/box from Self
as owned vector.
sourcefn get_circle(&self) -> &[CircleProperty]
fn get_circle(&self) -> &[CircleProperty]
Get https://schema.org/circle from Self
as borrowed slice.
sourcefn take_circle(&mut self) -> Vec<CircleProperty>
fn take_circle(&mut self) -> Vec<CircleProperty>
Take https://schema.org/circle 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_line(&self) -> &[LineProperty]
fn get_line(&self) -> &[LineProperty]
Get https://schema.org/line from Self
as borrowed slice.
sourcefn take_line(&mut self) -> Vec<LineProperty>
fn take_line(&mut self) -> Vec<LineProperty>
Take https://schema.org/line from Self
as owned vector.
sourcefn get_polygon(&self) -> &[PolygonProperty]
fn get_polygon(&self) -> &[PolygonProperty]
Get https://schema.org/polygon from Self
as borrowed slice.
sourcefn take_polygon(&mut self) -> Vec<PolygonProperty>
fn take_polygon(&mut self) -> Vec<PolygonProperty>
Take https://schema.org/polygon 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.