Struct sqlx_ledger::transaction::Transaction
source · pub struct Transaction {
pub id: TransactionId,
pub version: u32,
pub journal_id: JournalId,
pub tx_template_id: TxTemplateId,
pub effective: NaiveDate,
pub correlation_id: CorrelationId,
pub external_id: String,
pub description: Option<String>,
pub metadata_json: Option<Value>,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
}
Fields§
§id: TransactionId
§version: u32
§journal_id: JournalId
§tx_template_id: TxTemplateId
§effective: NaiveDate
§correlation_id: CorrelationId
§external_id: String
§description: Option<String>
§metadata_json: Option<Value>
§created_at: DateTime<Utc>
§modified_at: DateTime<Utc>
Implementations§
source§impl Transaction
impl Transaction
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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