pub struct ObservedMember {
pub name: String,
pub form: MemberForm,
pub data_types: Vec<String>,
pub enumeration_value: Option<String>,
}Expand description
One authored property or quantity as observed in a caller’s own model,
used as validation input against a crate::definition::SetTemplate.
Fields§
§name: StringDotted path matching super::apply_template’s path argument for
nested Complex properties, or the bare name at the top level.
form: MemberFormObserved value form.
data_types: Vec<String>Observed IFC type metadata. An empty vector means “not observed”; validation then skips type conformance rather than proving it.
enumeration_value: Option<String>Observed enumeration value, if form is EnumeratedValue and one was read.
Implementations§
Source§impl ObservedMember
impl ObservedMember
Sourcepub fn property(name: impl Into<String>, form: MemberForm) -> Self
pub fn property(name: impl Into<String>, form: MemberForm) -> Self
Start an observed property member with no data types or enumeration value set.
Sourcepub fn quantity(name: impl Into<String>, kind: QuantityKind) -> Self
pub fn quantity(name: impl Into<String>, kind: QuantityKind) -> Self
Start an observed quantity member of the given physical family.
Sourcepub fn with_data_type(self, type_name: impl Into<String>) -> Self
pub fn with_data_type(self, type_name: impl Into<String>) -> Self
Record one observed IFC type name for this member.
Sourcepub fn with_enumeration_value(self, value: impl Into<String>) -> Self
pub fn with_enumeration_value(self, value: impl Into<String>) -> Self
Record the observed enumeration value for this member.
Trait Implementations§
Source§impl Clone for ObservedMember
impl Clone for ObservedMember
Source§fn clone(&self) -> ObservedMember
fn clone(&self) -> ObservedMember
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 moreSource§impl Debug for ObservedMember
impl Debug for ObservedMember
impl Eq for ObservedMember
Source§impl PartialEq for ObservedMember
impl PartialEq for ObservedMember
impl StructuralPartialEq for ObservedMember
Auto Trait Implementations§
impl Freeze for ObservedMember
impl RefUnwindSafe for ObservedMember
impl Send for ObservedMember
impl Sync for ObservedMember
impl Unpin for ObservedMember
impl UnsafeUnpin for ObservedMember
impl UnwindSafe for ObservedMember
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