pub struct DifferenceModel {
pub header: ModelHeader,
pub preconditions: Vec<Statement>,
pub reverse: Vec<Statement>,
pub forward: Vec<Statement>,
}Expand description
A difference model: statements to remove, then statements to add.
IEC 61970-552 defines a difference as a pair of RDF statement sets. Applying it means removing every reverse statement and then asserting every forward statement.
Fields§
§header: ModelHeader§preconditions: Vec<Statement>Statements that must hold in the model before the change applies
(dm:preconditions). Every published change set carries the element and leaves it
empty; one that does not is refused by
Dataset::apply_difference when they fail.
reverse: Vec<Statement>Statements describing the previous state, to be removed.
forward: Vec<Statement>Statements describing the new state, to be added.
Implementations§
Source§impl DifferenceModel
impl DifferenceModel
Sourcepub fn affected_objects(&self) -> Vec<Mrid>
pub fn affected_objects(&self) -> Vec<Mrid>
Objects touched by this difference, in first-seen order.
Trait Implementations§
Source§impl Clone for DifferenceModel
impl Clone for DifferenceModel
Source§impl Debug for DifferenceModel
impl Debug for DifferenceModel
Auto Trait Implementations§
impl Forget for DifferenceModel
impl Freeze for DifferenceModelwhere
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Mrid>: Freeze,
PhantomData<HeaderProperty>: Freeze,
PhantomData<Statement>: Freeze,
impl Move for DifferenceModel
impl RefUnwindSafe for DifferenceModel
impl Send for DifferenceModel
impl Sync for DifferenceModel
impl Unpin for DifferenceModel
impl UnsafeUnpin for DifferenceModelwhere
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Mrid>: UnsafeUnpin,
PhantomData<HeaderProperty>: UnsafeUnpin,
PhantomData<Statement>: UnsafeUnpin,
impl UnwindSafe for DifferenceModel
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