pub struct ObservedArgument {
pub name: ObservedArgumentName,
pub truncated: bool,
pub type_: ObservedArgumentType,
pub value: ObservedArgumentValue,
}Expand description
A decoded function or instruction argument.
JSON schema
{
"title": "ObservedArgument",
"description": "A decoded function or instruction argument.",
"examples": [
{
"name": "value",
"truncated": false,
"type": "uint256",
"value": "25000000"
}
],
"type": "object",
"required": [
"name",
"truncated",
"type",
"value"
],
"properties": {
"name": {
"description": "The argument name from the ABI or IDL. Empty when the ABI leaves it unnamed.",
"examples": [
"value"
],
"type": "string",
"maxLength": 256
},
"truncated": {
"description": "Whether `value` was cut to its first 256 characters.",
"examples": [
false
],
"type": "boolean"
},
"type": {
"description": "The argument type from the ABI or IDL.",
"examples": [
"uint256"
],
"type": "string",
"maxLength": 256
},
"value": {
"description": "The decoded value as text: integers in decimal base units, EVM addresses 0x-prefixed, Solana public keys in base58, bytes 0x-prefixed hex, booleans `true` or `false`, strings as-is, and arrays, tuples, and structs as compact JSON.",
"examples": [
"25000000"
],
"type": "string",
"maxLength": 256
}
},
"additionalProperties": false
}Fields§
§name: ObservedArgumentNameThe argument name from the ABI or IDL. Empty when the ABI leaves it unnamed.
truncated: boolWhether value was cut to its first 256 characters.
type_: ObservedArgumentTypeThe argument type from the ABI or IDL.
value: ObservedArgumentValueThe decoded value as text: integers in decimal base units, EVM addresses 0x-prefixed, Solana public keys in base58, bytes 0x-prefixed hex, booleans true or false, strings as-is, and arrays, tuples, and structs as compact JSON.
Implementations§
Source§impl ObservedArgument
impl ObservedArgument
pub fn builder() -> ObservedArgument
Trait Implementations§
Source§impl Clone for ObservedArgument
impl Clone for ObservedArgument
Source§impl Debug for ObservedArgument
impl Debug for ObservedArgument
Source§impl<'de> Deserialize<'de> for ObservedArgument
impl<'de> Deserialize<'de> for ObservedArgument
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
Source§impl From<&ObservedArgument> for ObservedArgument
impl From<&ObservedArgument> for ObservedArgument
Source§fn from(value: &ObservedArgument) -> Self
fn from(value: &ObservedArgument) -> Self
Converts to this type from the input type.
Source§impl From<ObservedArgument> for ObservedArgument
impl From<ObservedArgument> for ObservedArgument
Source§fn from(value: ObservedArgument) -> Self
fn from(value: ObservedArgument) -> Self
Converts to this type from the input type.
Source§impl Serialize for ObservedArgument
impl Serialize for ObservedArgument
Source§impl TryFrom<ObservedArgument> for ObservedArgument
impl TryFrom<ObservedArgument> for ObservedArgument
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ObservedArgument) -> Result<Self, ConversionError>
fn try_from(value: ObservedArgument) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ObservedArgument
impl RefUnwindSafe for ObservedArgument
impl Send for ObservedArgument
impl Sync for ObservedArgument
impl Unpin for ObservedArgument
impl UnsafeUnpin for ObservedArgument
impl UnwindSafe for ObservedArgument
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