#[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 ScanEventItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, ScanEvent> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ScanEvent)>>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ScanEventItem
impl RefUnwindSafe for ScanEventItem
impl Send for ScanEventItem
impl Sync for ScanEventItem
impl Unpin for ScanEventItem
impl UnsafeUnpin for ScanEventItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, ScanEvent> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ScanEvent)>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ScanEventItemwhere
RawVecInner: UnwindSafe,
BTreeMap<String, ScanEvent>: UnwindSafe,
BTreeMap<String, Value>: 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
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