pub struct Transaktion<D, S> {
pub transaktionsdaten: D,
pub stammdaten: S,
}Expand description
One transaction: the business objects it is about, and the metadata about the transaction itself.
D is the transaction metadata (the Prozessdaten entity), S the
business objects. Splitting them is what gives every level the same shape —
interchange, message and transaction each carry their own metadata slot
beside their content.
Fields§
§transaktionsdaten: DDefaulted so {"stammdaten": …} alone deserializes: a transaction that
carries no process data is normal, and rejecting it would make the
metadata slot mandatory on input when it is not mandatory in the data.
stammdaten: STrait Implementations§
Source§impl<'de, D, S> Deserialize<'de> for Transaktion<D, S>
impl<'de, D, S> Deserialize<'de> for Transaktion<D, S>
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<D, S> Freeze for Transaktion<D, S>
impl<D, S> RefUnwindSafe for Transaktion<D, S>where
D: RefUnwindSafe,
S: RefUnwindSafe,
impl<D, S> Send for Transaktion<D, S>
impl<D, S> Sync for Transaktion<D, S>
impl<D, S> Unpin for Transaktion<D, S>
impl<D, S> UnsafeUnpin for Transaktion<D, S>where
D: UnsafeUnpin,
S: UnsafeUnpin,
impl<D, S> UnwindSafe for Transaktion<D, S>where
D: UnwindSafe,
S: UnwindSafe,
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