Trait schema_org_types::PostalAddressTrait
source · pub trait PostalAddressTrait {
// Required methods
fn get_address_country(&self) -> &[AddressCountryProperty];
fn take_address_country(&mut self) -> Vec<AddressCountryProperty>;
fn get_address_locality(&self) -> &[AddressLocalityProperty];
fn take_address_locality(&mut self) -> Vec<AddressLocalityProperty>;
fn get_address_region(&self) -> &[AddressRegionProperty];
fn take_address_region(&mut self) -> Vec<AddressRegionProperty>;
fn get_post_office_box_number(&self) -> &[PostOfficeBoxNumberProperty];
fn take_post_office_box_number(
&mut self
) -> Vec<PostOfficeBoxNumberProperty>;
fn get_postal_code(&self) -> &[PostalCodeProperty];
fn take_postal_code(&mut self) -> Vec<PostalCodeProperty>;
fn get_street_address(&self) -> &[StreetAddressProperty];
fn take_street_address(&mut self) -> Vec<StreetAddressProperty>;
}
Expand description
This trait is for properties from https://schema.org/PostalAddress.
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_locality(&self) -> &[AddressLocalityProperty]
fn get_address_locality(&self) -> &[AddressLocalityProperty]
Get https://schema.org/addressLocality from Self
as borrowed slice.
sourcefn take_address_locality(&mut self) -> Vec<AddressLocalityProperty>
fn take_address_locality(&mut self) -> Vec<AddressLocalityProperty>
Take https://schema.org/addressLocality 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_post_office_box_number(&self) -> &[PostOfficeBoxNumberProperty]
fn get_post_office_box_number(&self) -> &[PostOfficeBoxNumberProperty]
Get https://schema.org/postOfficeBoxNumber from Self
as borrowed slice.
sourcefn take_post_office_box_number(&mut self) -> Vec<PostOfficeBoxNumberProperty>
fn take_post_office_box_number(&mut self) -> Vec<PostOfficeBoxNumberProperty>
Take https://schema.org/postOfficeBoxNumber 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_street_address(&self) -> &[StreetAddressProperty]
fn get_street_address(&self) -> &[StreetAddressProperty]
Get https://schema.org/streetAddress from Self
as borrowed slice.
sourcefn take_street_address(&mut self) -> Vec<StreetAddressProperty>
fn take_street_address(&mut self) -> Vec<StreetAddressProperty>
Take https://schema.org/streetAddress from Self
as owned vector.