Trait schema_org_types::DefinedRegionTrait
source · pub trait DefinedRegionTrait {
// Required methods
fn get_address_country(&self) -> &[AddressCountryProperty];
fn take_address_country(&mut self) -> Vec<AddressCountryProperty>;
fn get_address_region(&self) -> &[AddressRegionProperty];
fn take_address_region(&mut self) -> Vec<AddressRegionProperty>;
fn get_postal_code(&self) -> &[PostalCodeProperty];
fn take_postal_code(&mut self) -> Vec<PostalCodeProperty>;
fn get_postal_code_prefix(&self) -> &[PostalCodePrefixProperty];
fn take_postal_code_prefix(&mut self) -> Vec<PostalCodePrefixProperty>;
fn get_postal_code_range(&self) -> &[PostalCodeRangeProperty];
fn take_postal_code_range(&mut self) -> Vec<PostalCodeRangeProperty>;
}
Expand description
This trait is for properties from https://schema.org/DefinedRegion.
Required Methods§
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_address_region(&self) -> &[AddressRegionProperty]
fn get_address_region(&self) -> &[AddressRegionProperty]
Get https://schema.org/addressRegion from Self
as borrowed slice.
sourcefn take_address_region(&mut self) -> Vec<AddressRegionProperty>
fn take_address_region(&mut self) -> Vec<AddressRegionProperty>
Take https://schema.org/addressRegion 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.
sourcefn get_postal_code_prefix(&self) -> &[PostalCodePrefixProperty]
fn get_postal_code_prefix(&self) -> &[PostalCodePrefixProperty]
Get https://schema.org/postalCodePrefix from Self
as borrowed slice.
sourcefn take_postal_code_prefix(&mut self) -> Vec<PostalCodePrefixProperty>
fn take_postal_code_prefix(&mut self) -> Vec<PostalCodePrefixProperty>
Take https://schema.org/postalCodePrefix from Self
as owned vector.
sourcefn get_postal_code_range(&self) -> &[PostalCodeRangeProperty]
fn get_postal_code_range(&self) -> &[PostalCodeRangeProperty]
Get https://schema.org/postalCodeRange from Self
as borrowed slice.
sourcefn take_postal_code_range(&mut self) -> Vec<PostalCodeRangeProperty>
fn take_postal_code_range(&mut self) -> Vec<PostalCodeRangeProperty>
Take https://schema.org/postalCodeRange from Self
as owned vector.