Struct sqlx_ledger::event::SqlxLedgerEvent
source · pub struct SqlxLedgerEvent {
pub id: SqlxLedgerEventId,
pub data: SqlxLedgerEventData,
pub type: SqlxLedgerEventType,
pub recorded_at: DateTime<Utc>,
}
Expand description
Representation of a ledger event.
Fields§
§id: SqlxLedgerEventId
§data: SqlxLedgerEventData
§type: SqlxLedgerEventType
§recorded_at: DateTime<Utc>
Implementations§
source§impl SqlxLedgerEvent
impl SqlxLedgerEvent
pub fn journal_id(&self) -> JournalId
pub fn account_id(&self) -> Option<AccountId>
Trait Implementations§
source§impl Clone for SqlxLedgerEvent
impl Clone for SqlxLedgerEvent
source§fn clone(&self) -> SqlxLedgerEvent
fn clone(&self) -> SqlxLedgerEvent
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 SqlxLedgerEvent
impl Debug for SqlxLedgerEvent
source§impl<'de> Deserialize<'de> for SqlxLedgerEvent
impl<'de> Deserialize<'de> for SqlxLedgerEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SqlxLedgerEvent
impl RefUnwindSafe for SqlxLedgerEvent
impl Send for SqlxLedgerEvent
impl Sync for SqlxLedgerEvent
impl Unpin for SqlxLedgerEvent
impl UnwindSafe for SqlxLedgerEvent
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more