Struct mentat_transaction::entity_builder::EntityBuilder
[−]
[src]
pub struct EntityBuilder<T: BuildTerms + Sized> { /* fields omitted */ }
Methods
impl<T> EntityBuilder<T> where
T: BuildTerms,
[src]
T: BuildTerms,
pub fn finish(self) -> (T, EntityPlace<TypedValue>)
[src]
pub fn add<A, V>(&mut self, a: A, v: V) -> Result<()> where
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,
[src]
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,
pub fn retract<A, V>(&mut self, a: A, v: V) -> Result<()> where
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,
[src]
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,
impl<'a, 'c> EntityBuilder<InProgressBuilder<'a, 'c>>
[src]
pub fn transact(self) -> (InProgress<'a, 'c>, Result<TxReport>)
[src]
Build the terms from this builder and transact them against the current
InProgress
. This method always returns the InProgress
-- failure doesn't
imply an automatic rollback.
pub fn commit(self) -> Result<TxReport>
[src]
Transact the contents of the builder and commit the InProgress
. If any
step fails, roll back. Return the TxReport
.