Function extract_token_name_field
Source pub fn extract_token_name_field(json: &Value) -> Result<&str, TokenParseError>
Expand description
Extracts the “token_name” field from a JSON object.
§Arguments
json - A reference to a serde_json::Value object.
§Returns
Result<&str, TokenParseError> - The token name as a string slice,
or an error if the field is missing or invalid.