#[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>
impl<'a> PostalAddressDraft<'a>
Sourcepub fn purpose(self, value: &'a str) -> Self
pub fn purpose(self, value: &'a str) -> Self
Sets Self::purpose: Purpose, an IfcAddressTypeEnum token.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Description.
Sourcepub fn user_defined_purpose(self, value: &'a str) -> Self
pub fn user_defined_purpose(self, value: &'a str) -> Self
Sets Self::user_defined_purpose: UserDefinedPurpose. Required when purpose is USERDEFINED.
Sourcepub fn internal_location(self, value: &'a str) -> Self
pub fn internal_location(self, value: &'a str) -> Self
Sets Self::internal_location: InternalLocation: a room or desk within the building.
Sourcepub fn postal_box(self, value: &'a str) -> Self
pub fn postal_box(self, value: &'a str) -> Self
Sets Self::postal_box: PostalBox.
Sourcepub fn town(self, value: &'a str) -> Self
pub fn town(self, value: &'a str) -> Self
Sets Self::town: Town.
Sourcepub fn region(self, value: &'a str) -> Self
pub fn region(self, value: &'a str) -> Self
Sets Self::region: Region.
Sourcepub fn postal_code(self, value: &'a str) -> Self
pub fn postal_code(self, value: &'a str) -> Self
Sets Self::postal_code: PostalCode.
Sourcepub fn country(self, value: &'a str) -> Self
pub fn country(self, value: &'a str) -> Self
Sets Self::country: Country.
Trait Implementations§
Source§impl<'a> Clone for PostalAddressDraft<'a>
impl<'a> Clone for PostalAddressDraft<'a>
Source§fn clone(&self) -> PostalAddressDraft<'a>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PostalAddressDraft<'a>
Source§impl<'a> Debug for PostalAddressDraft<'a>
impl<'a> Debug for PostalAddressDraft<'a>
Source§impl<'a> Default for PostalAddressDraft<'a>
impl<'a> Default for PostalAddressDraft<'a>
Source§fn default() -> PostalAddressDraft<'a>
fn default() -> PostalAddressDraft<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PostalAddressDraft<'a>
impl<'a> RefUnwindSafe for PostalAddressDraft<'a>
impl<'a> Send for PostalAddressDraft<'a>
impl<'a> Sync for PostalAddressDraft<'a>
impl<'a> Unpin for PostalAddressDraft<'a>
impl<'a> UnsafeUnpin for PostalAddressDraft<'a>
impl<'a> UnwindSafe for PostalAddressDraft<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more