pub struct Slot {
pub attr: AttrId,
pub profiles: ProfileMask,
pub value: Value,
}Expand description
One stored attribute occurrence, with the profiles it came from.
Provenance matters because CGMES declares common attributes such as
IdentifiedObject.mRID in almost every profile. Deciding what to write from
declarations alone would repeat every object in every profile file; recording where a
value actually came from reproduces the original file set exactly.
Fields§
§attr: AttrId§profiles: ProfileMaskProfiles whose instance files carried this value.
Zero means the provenance is unknown — typically a value set programmatically — in which case serialization falls back to the attribute’s declared profiles.
value: ValueImplementations§
Trait Implementations§
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Forget for Slot
impl Freeze for Slot
impl Move for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slotwhere
*const (f64, Box<str>) is !null: UnsafeUnpin,
PhantomData<(f64, Box<str>)>: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const Compound is !null: UnsafeUnpin,
PhantomData<Compound>: UnsafeUnpin,
impl UnwindSafe for Slot
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