algonaut_indexer 0.7.0

Algorand ledger analytics API.
Documentation
/*
 * Indexer
 *
 * Algorand ledger analytics API.
 *
 * The version of the OpenAPI document: 2.0
 *
 * Generated by: https://openapi-generator.tech
 */

/// TealValue : Represents a TEAL value.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct TealValue {
    /// \\[tb\\] bytes value.
    #[serde(rename = "bytes")]
    pub bytes: String,
    /// \\[tt\\] value type. Value `1` refers to **bytes**, value `2` refers to **uint**
    #[serde(rename = "type")]
    pub r#type: u64,
    /// \\[ui\\] uint value.
    #[serde(rename = "uint")]
    pub uint: u64,
}

impl TealValue {
    /// Represents a TEAL value.
    pub fn new(bytes: String, r#type: u64, uint: u64) -> TealValue {
        TealValue {
            bytes,
            r#type,
            uint,
        }
    }
}