Struct mentat_transaction::entity_builder::InProgressBuilder
[−]
[src]
pub struct InProgressBuilder<'a, 'c> { /* fields omitted */ }
Methods
impl<'a, 'c> InProgressBuilder<'a, 'c>
[src]
pub fn new(in_progress: InProgress<'a, 'c>) -> Self
[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
.
Trait Implementations
impl<'a, 'c> BuildTerms for InProgressBuilder<'a, 'c>
[src]
fn named_tempid<I>(&mut self, name: I) -> ValueRc<TempId> where
I: Into<String>,
[src]
I: Into<String>,
fn describe_tempid(self, name: &str) -> EntityBuilder<InProgressBuilder<'a, 'c>>
[src]
fn describe<E>(self, entity: E) -> EntityBuilder<InProgressBuilder<'a, 'c>> where
E: Into<EntityPlace<TypedValue>>,
[src]
E: Into<EntityPlace<TypedValue>>,
fn add<E, A, V>(&mut self, e: E, a: A, v: V) -> Result<()> where
E: Into<EntityPlace<TypedValue>>,
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,
[src]
E: Into<EntityPlace<TypedValue>>,
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,
fn retract<E, A, V>(&mut self, e: E, a: A, v: V) -> Result<()> where
E: Into<EntityPlace<TypedValue>>,
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,
[src]
E: Into<EntityPlace<TypedValue>>,
A: Into<AttributePlace>,
V: Into<ValuePlace<TypedValue>>,