Struct transact::protocol::receipt::TransactionReceiptBuilder
source · pub struct TransactionReceiptBuilder { /* private fields */ }
Implementations§
source§impl TransactionReceiptBuilder
impl TransactionReceiptBuilder
pub fn new() -> Self
pub fn valid(self) -> Self
pub fn invalid(self) -> Self
pub fn with_state_changes( self, state_changes: Vec<StateChange> ) -> TransactionReceiptBuilder
pub fn with_events(self, events: Vec<Event>) -> TransactionReceiptBuilder
pub fn with_data(self, data: Vec<Vec<u8>>) -> TransactionReceiptBuilder
pub fn with_error_message( self, error_message: String ) -> TransactionReceiptBuilder
pub fn with_error_data(self, error_data: Vec<u8>) -> TransactionReceiptBuilder
pub fn with_transaction_id( self, transaction_id: String ) -> TransactionReceiptBuilder
pub fn build(self) -> Result<TransactionReceipt, TransactionReceiptBuilderError>
Trait Implementations§
source§impl Clone for TransactionReceiptBuilder
impl Clone for TransactionReceiptBuilder
source§fn clone(&self) -> TransactionReceiptBuilder
fn clone(&self) -> TransactionReceiptBuilder
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 Default for TransactionReceiptBuilder
impl Default for TransactionReceiptBuilder
source§fn default() -> TransactionReceiptBuilder
fn default() -> TransactionReceiptBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TransactionReceiptBuilder
impl Send for TransactionReceiptBuilder
impl Sync for TransactionReceiptBuilder
impl Unpin for TransactionReceiptBuilder
impl UnwindSafe for TransactionReceiptBuilder
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more