[−][src]Struct ainoio_agent::Transaction
A log entry for a single Transaction
between two applications.
Fields
from: String
The name of originating application
to: String
The name of the target application
status: Status
A Status
flag indicating the whether the Transaction
was successful or not.
timestamp: u128
The timestamp when the Transaction
took place, in milliseconds.
operation: String
The operation of the Transaction
.
flow_id: String
The ID for the whole logical flow if Transaction
s.
payload_type: Option<String>
The type of payload in the Transaction
(optional)
message: Option<String>
A possible log message (optional)
ids: Option<Vec<TransactionId>>
All IDs related to this Transaction
(optional)
metadata: Option<Vec<TransactionMetadata>>
All metadata related to this Transaction
(optional)
Methods
impl Transaction
[src]
pub fn new(
from: String,
to: String,
operation: String,
status: Status,
timestamp: u128,
flow_id: String
) -> Self
[src]
from: String,
to: String,
operation: String,
status: Status,
timestamp: u128,
flow_id: String
) -> Self
Constructs a single Transaction
with the mandatory values.
pub fn add_metadata(&mut self, metadata: TransactionMetadata) -> &mut Self
[src]
Adds a metadata to the Transaction
pub fn add_id(&mut self, id: TransactionId) -> &mut Self
[src]
Add an ID to the Transaction
Trait Implementations
impl Clone for Transaction
[src]
fn clone(&self) -> Transaction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Transaction
[src]
impl Display for Transaction
[src]
impl Serialize for Transaction
[src]
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,