pub struct TransactionContext {
pub to: Option<String>,
pub value: Option<String>,
pub raw_hex: String,
pub data: Option<String>,
}Expand description
Transaction fields available for policy evaluation.
Fields§
§to: Option<String>Destination address (if applicable).
value: Option<String>Native value in smallest unit (wei, lamports, etc).
raw_hex: StringRaw transaction hex.
data: Option<String>Calldata / input data (EVM).
Trait Implementations§
Source§impl Clone for TransactionContext
impl Clone for TransactionContext
Source§fn clone(&self) -> TransactionContext
fn clone(&self) -> TransactionContext
Returns a duplicate 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 TransactionContext
impl Debug for TransactionContext
Source§impl<'de> Deserialize<'de> for TransactionContext
impl<'de> Deserialize<'de> for TransactionContext
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransactionContext
impl RefUnwindSafe for TransactionContext
impl Send for TransactionContext
impl Sync for TransactionContext
impl Unpin for TransactionContext
impl UnsafeUnpin for TransactionContext
impl UnwindSafe for TransactionContext
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