#[non_exhaustive]pub struct SeriesDraft<'a> {
pub name: &'a str,
pub description: Option<&'a str>,
pub start_time: &'a str,
pub end_time: &'a str,
pub data_type: &'a str,
pub data_origin: &'a str,
pub user_defined_data_origin: Option<&'a str>,
pub unit: Option<EntityId>,
}Expand description
The IfcTimeSeries supertype attributes, shared by both subtypes.
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.name: &'a strName. Required.
description: Option<&'a str>Description.
start_time: &'a strStartTime. Required.
end_time: &'a strEndTime. Required.
data_type: &'a strTimeSeriesDataType. Required enumeration token.
data_origin: &'a strDataOrigin. Required enumeration token.
user_defined_data_origin: Option<&'a str>UserDefinedDataOrigin.
unit: Option<EntityId>Unit, an IfcUnit reference.
Implementations§
Source§impl<'a> SeriesDraft<'a>
impl<'a> SeriesDraft<'a>
Sourcepub fn new(
name: &'a str,
start_time: &'a str,
end_time: &'a str,
data_type: &'a str,
data_origin: &'a str,
) -> Self
pub fn new( name: &'a str, start_time: &'a str, end_time: &'a str, data_type: &'a str, data_origin: &'a str, ) -> Self
Starts a draft with its required fields; the rest are unset.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Description.
Sourcepub fn user_defined_data_origin(self, value: &'a str) -> Self
pub fn user_defined_data_origin(self, value: &'a str) -> Self
Sets Self::user_defined_data_origin: UserDefinedDataOrigin.
Sourcepub fn unit(self, value: EntityId) -> Self
pub fn unit(self, value: EntityId) -> Self
Sets Self::unit: Unit, an IfcUnit reference.
Trait Implementations§
Source§impl<'a> Clone for SeriesDraft<'a>
impl<'a> Clone for SeriesDraft<'a>
impl<'a> Copy for SeriesDraft<'a>
Source§impl<'a> Debug for SeriesDraft<'a>
impl<'a> Debug for SeriesDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for SeriesDraft<'a>
impl<'a> RefUnwindSafe for SeriesDraft<'a>
impl<'a> Send for SeriesDraft<'a>
impl<'a> Sync for SeriesDraft<'a>
impl<'a> Unpin for SeriesDraft<'a>
impl<'a> UnsafeUnpin for SeriesDraft<'a>
impl<'a> UnwindSafe for SeriesDraft<'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