Skip to main content

PostalAddressDraft

Struct PostalAddressDraft 

Source
#[non_exhaustive]
pub struct PostalAddressDraft<'a> { pub purpose: Option<&'a str>, pub description: Option<&'a str>, pub user_defined_purpose: Option<&'a str>, pub internal_location: Option<&'a str>, pub postal_box: Option<&'a str>, pub town: Option<&'a str>, pub region: Option<&'a str>, pub postal_code: Option<&'a str>, pub country: Option<&'a str>, }
Expand description

Draft for one IfcPostalAddress.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§purpose: Option<&'a str>

Purpose, an IfcAddressTypeEnum token.

§description: Option<&'a str>

Description.

§user_defined_purpose: Option<&'a str>

UserDefinedPurpose. Required when purpose is USERDEFINED.

§internal_location: Option<&'a str>

InternalLocation: a room or desk within the building.

§postal_box: Option<&'a str>

PostalBox.

§town: Option<&'a str>

Town.

§region: Option<&'a str>

Region.

§postal_code: Option<&'a str>

PostalCode.

§country: Option<&'a str>

Country.

Implementations§

Source§

impl<'a> PostalAddressDraft<'a>

Source

pub fn new() -> Self

Starts a draft with every field unset.

Source

pub fn purpose(self, value: &'a str) -> Self

Sets Self::purpose: Purpose, an IfcAddressTypeEnum token.

Source

pub fn description(self, value: &'a str) -> Self

Sets Self::description: Description.

Source

pub fn user_defined_purpose(self, value: &'a str) -> Self

Sets Self::user_defined_purpose: UserDefinedPurpose. Required when purpose is USERDEFINED.

Source

pub fn internal_location(self, value: &'a str) -> Self

Sets Self::internal_location: InternalLocation: a room or desk within the building.

Source

pub fn postal_box(self, value: &'a str) -> Self

Sets Self::postal_box: PostalBox.

Source

pub fn town(self, value: &'a str) -> Self

Sets Self::town: Town.

Source

pub fn region(self, value: &'a str) -> Self

Sets Self::region: Region.

Source

pub fn postal_code(self, value: &'a str) -> Self

Sets Self::postal_code: PostalCode.

Source

pub fn country(self, value: &'a str) -> Self

Sets Self::country: Country.

Trait Implementations§

Source§

impl<'a> Clone for PostalAddressDraft<'a>

Source§

fn clone(&self) -> PostalAddressDraft<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for PostalAddressDraft<'a>

Source§

impl<'a> Debug for PostalAddressDraft<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for PostalAddressDraft<'a>

Source§

fn default() -> PostalAddressDraft<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.