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<D, S> Clone for Transaktion<D, S>
impl<D, S> Clone for Transaktion<D, S>
Source§fn clone(&self) -> Transaktion<D, S>
fn clone(&self) -> Transaktion<D, S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D, S> Debug for Transaktion<D, S>
impl<D, S> Debug for Transaktion<D, S>
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<Transaktion<D, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Transaktion<D, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<D, S> Serialize for Transaktion<D, S>
impl<D, S> Serialize for Transaktion<D, S>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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