#[non_exhaustive]pub struct ScanEventItem {
pub update: Option<ScanUpdate>,
pub verdict: Option<Value>,
pub traffic_summary: Option<Value>,
pub app_activity_records: Option<Value>,
pub asset_activity_records: Option<Value>,
pub submitting_app_provider: Option<String>,
}Expand description
One entry of the event history: an update, the mediator’s verdict on it, or both.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.update: Option<ScanUpdate>The update, where Scan’s participant saw it. A transaction the mediator rejected has a verdict and no update.
verdict: Option<Value>The mediator’s verdict, as Scan publishes it.
traffic_summary: Option<Value>The traffic the update cost, where Scan reports it.
app_activity_records: Option<Value>The application activity records the update produced, where Scan reports them.
asset_activity_records: Option<Value>The asset activity records the update produced, where Scan reports them.
submitting_app_provider: Option<String>The application provider the submission was made through, where Scan reports one.
Implementations§
Source§impl ScanEventItem
impl ScanEventItem
Sourcepub fn position(&self) -> Option<HistoryPosition>
pub fn position(&self) -> Option<HistoryPosition>
Where this entry is in history, to read on from: the update’s
position, or the verdict’s where there is no update, as for a
transaction the mediator rejected. None only for an entry with
neither, or a verdict without its migration and record time.
Trait Implementations§
Source§impl Clone for ScanEventItem
impl Clone for ScanEventItem
Source§impl Debug for ScanEventItem
impl Debug for ScanEventItem
Source§impl<'de> Deserialize<'de> for ScanEventItem
impl<'de> Deserialize<'de> for ScanEventItem
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>,
Auto Trait Implementations§
impl Forget for ScanEventItem
impl Freeze for ScanEventItem
impl Move for ScanEventItem
impl RefUnwindSafe for ScanEventItem
impl Send for ScanEventItem
impl Sync for ScanEventItem
impl Unpin for ScanEventItem
impl UnsafeUnpin for ScanEventItem
impl UnwindSafe for ScanEventItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request