Skip to main content

Transaktion

Struct Transaktion 

Source
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: D

Defaulted 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: S

Trait Implementations§

Source§

impl<D, S> Clone for Transaktion<D, S>
where D: Clone, S: Clone,

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<D, S> Debug for Transaktion<D, S>
where D: Debug, S: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de, D, S> Deserialize<'de> for Transaktion<D, S>
where D: Deserialize<'de> + Default, S: Deserialize<'de>,

Source§

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>
where D: Serialize, S: Serialize,

Source§

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>
where D: Freeze, S: Freeze,

§

impl<D, S> RefUnwindSafe for Transaktion<D, S>

§

impl<D, S> Send for Transaktion<D, S>
where D: Send, S: Send,

§

impl<D, S> Sync for Transaktion<D, S>
where D: Sync, S: Sync,

§

impl<D, S> Unpin for Transaktion<D, S>
where D: Unpin, S: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.