get_field

Function get_field 

Source
pub fn get_field<T: CurrentTxFieldGetter>(field_code: i32) -> Result<T>
Expand description

Retrieves a field from the current transaction.

§Arguments

  • field_code - The field code identifying which field to retrieve

§Returns

Returns a Result<T> where:

  • Ok(T) - The field value for the specified field
  • Err(Error) - If the field cannot be retrieved or has unexpected size