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 moreAuto Trait Implementations§
impl RefUnwindSafe for NewAccountBuilder
impl Send for NewAccountBuilder
impl Sync for NewAccountBuilder
impl Unpin for NewAccountBuilder
impl UnwindSafe for NewAccountBuilder
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