Struct sqlx_ledger::account::NewAccountBuilder
source · pub struct NewAccountBuilder { /* private fields */ }
Expand description
Builder for NewAccount
.
Implementations§
source§impl NewAccountBuilder
impl NewAccountBuilder
pub fn id<VALUE: Into<AccountId>>(&mut self, value: VALUE) -> &mut Self
pub fn code<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn normal_balance_type(&mut self, value: DebitOrCredit) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn status(&mut self, value: Status) -> &mut Self
sourcepub fn build(&self) -> Result<NewAccount, NewAccountBuilderError>
pub fn build(&self) -> Result<NewAccount, NewAccountBuilderError>
Trait Implementations§
source§impl Clone for NewAccountBuilder
impl Clone for NewAccountBuilder
source§fn clone(&self) -> NewAccountBuilder
fn clone(&self) -> NewAccountBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more