Enum sqlx_ledger::DebitOrCredit
source · pub enum DebitOrCredit {
Debit,
Credit,
}
Variants§
Trait Implementations§
source§impl Clone for DebitOrCredit
impl Clone for DebitOrCredit
source§fn clone(&self) -> DebitOrCredit
fn clone(&self) -> DebitOrCredit
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 moresource§impl Debug for DebitOrCredit
impl Debug for DebitOrCredit
source§impl<'r> Decode<'r, Postgres> for DebitOrCredit
impl<'r> Decode<'r, Postgres> for DebitOrCredit
source§impl Default for DebitOrCredit
impl Default for DebitOrCredit
source§impl<'q, DB: Database> Encode<'q, DB> for DebitOrCreditwhere
&'q str: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for DebitOrCreditwhere
&'q str: Encode<'q, DB>,
source§fn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn size_hint(&self) -> usize
§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl PartialEq<DebitOrCredit> for DebitOrCredit
impl PartialEq<DebitOrCredit> for DebitOrCredit
source§fn eq(&self, other: &DebitOrCredit) -> bool
fn eq(&self, other: &DebitOrCredit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<CelResult<'a>> for DebitOrCredit
impl<'a> TryFrom<CelResult<'a>> for DebitOrCredit
source§impl Type<Postgres> for DebitOrCredit
impl Type<Postgres> for DebitOrCredit
impl Copy for DebitOrCredit
impl Eq for DebitOrCredit
impl StructuralEq for DebitOrCredit
impl StructuralPartialEq for DebitOrCredit
Auto Trait Implementations§
impl RefUnwindSafe for DebitOrCredit
impl Send for DebitOrCredit
impl Sync for DebitOrCredit
impl Unpin for DebitOrCredit
impl UnwindSafe for DebitOrCredit
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.