Trait entity::EntBuilder[][src]

pub trait EntBuilder {
    type Output: Ent;
    type Error;
    fn finish(self) -> Result<Self::Output, Self::Error>;
fn finish_and_commit(
        self
    ) -> Result<DatabaseResult<Self::Output>, Self::Error>; }

Represents a builder interface for some ent, capable of building a new ent instance and also saving the new ent to the database at the same time

Associated Types

type Output: Ent[src]

The ent that will be created

type Error[src]

The ent-specific builder errors that can occur

Loading content...

Required methods

fn finish(self) -> Result<Self::Output, Self::Error>[src]

Consumes the builder and creates a new instance of the ent

fn finish_and_commit(self) -> Result<DatabaseResult<Self::Output>, Self::Error>[src]

Consumes the builder, creates a new instance of the ent, and saves it to the database referenced by the ent

Loading content...

Implementors

Loading content...