Struct sqlx_ledger::event::SqlxLedgerEvent
source · pub struct SqlxLedgerEvent {
pub id: i64,
pub data: SqlxLedgerEventData,
pub type: SqlxLedgerEventType,
pub recorded_at: DateTime<Utc>,
pub span: Span,
}
Expand description
Representation of a ledger event.
Fields§
§id: i64
§data: SqlxLedgerEventData
§type: SqlxLedgerEventType
§recorded_at: DateTime<Utc>
§span: Span
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