Struct explorer::db::indexing::ExplorerTransaction
source · pub struct ExplorerTransaction {
pub id: FragmentId,
pub inputs: Vec<ExplorerInput>,
pub outputs: Vec<ExplorerOutput>,
pub certificate: Option<Certificate>,
pub offset_in_block: u32,
pub config_params: Option<ConfigParams>,
}
Fields§
§id: FragmentId
§inputs: Vec<ExplorerInput>
§outputs: Vec<ExplorerOutput>
§certificate: Option<Certificate>
§offset_in_block: u32
§config_params: Option<ConfigParams>
Implementations§
source§impl ExplorerTransaction
impl ExplorerTransaction
sourcepub fn from<'context, T>(
context: &'context ExplorerBlockBuildingContext<'context>,
id: &FragmentId,
tx: &TransactionSlice<'_, T>,
certificate: Option<Certificate>,
offset_in_block: u32,
transactions_in_current_block: &HashMap<FragmentId, ExplorerTransaction>
) -> Result<ExplorerTransaction, Error>
pub fn from<'context, T>( context: &'context ExplorerBlockBuildingContext<'context>, id: &FragmentId, tx: &TransactionSlice<'_, T>, certificate: Option<Certificate>, offset_in_block: u32, transactions_in_current_block: &HashMap<FragmentId, ExplorerTransaction> ) -> Result<ExplorerTransaction, Error>
Map the given AuthenticatedTransaction to the ExplorerTransaction API representation type. the fragment id is the associated to the given AuthenticatedTransaction before ‘unwrapping’ The discrimination is needed to get addresses from account inputs. The transactions and blocks are used to resolve utxo inputs
pub fn id(&self) -> FragmentId
pub fn inputs(&self) -> &Vec<ExplorerInput>
pub fn outputs(&self) -> &Vec<ExplorerOutput>
Trait Implementations§
source§impl Clone for ExplorerTransaction
impl Clone for ExplorerTransaction
source§fn clone(&self) -> ExplorerTransaction
fn clone(&self) -> ExplorerTransaction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExplorerTransaction
impl Debug for ExplorerTransaction
Auto Trait Implementations§
impl RefUnwindSafe for ExplorerTransaction
impl Send for ExplorerTransaction
impl Sync for ExplorerTransaction
impl Unpin for ExplorerTransaction
impl UnwindSafe for ExplorerTransaction
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Wrap the input message
T
in a tonic::Request
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>
Wrap the input message
T
in a tonic::Request