#[non_exhaustive]pub struct Subject {
pub instance: u64,
pub entity: String,
pub product_definition: Option<u64>,
}Expand description
What a property or identifier is attached to.
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.instance: u64The #id the property or identifier points at.
entity: StringIts upper-cased entity type; for a complex instance, the partial
entities joined with +.
product_definition: Option<u64>The product definition it belongs to, found by following product
definition shapes, shape aspects and property definitions; None if
that leads nowhere, as for a property of an assembly usage.
Trait Implementations§
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnsafeUnpin for Subject
impl UnwindSafe for Subject
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