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
 */

/// ResourceRef : ResourceRef names a single resource. Only one of the fields should be set.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ResourceRef {
    /// \\[d\\] Account whose balance record is accessible by the executing ApprovalProgram or ClearStateProgram.
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// \\[p\\] Application id whose GlobalState may be read by the executing  ApprovalProgram or ClearStateProgram.
    #[serde(rename = "application-id", skip_serializing_if = "Option::is_none")]
    pub application_id: Option<u64>,
    /// \\[s\\] Asset whose AssetParams may be read by the executing  ApprovalProgram or ClearStateProgram.
    #[serde(rename = "asset-id", skip_serializing_if = "Option::is_none")]
    pub asset_id: Option<u64>,
    #[serde(rename = "box", skip_serializing_if = "Option::is_none")]
    pub r#box: Option<Box<crate::models::BoxReference>>,
    #[serde(rename = "holding", skip_serializing_if = "Option::is_none")]
    pub holding: Option<Box<crate::models::HoldingRef>>,
    #[serde(rename = "local", skip_serializing_if = "Option::is_none")]
    pub local: Option<Box<crate::models::LocalsRef>>,
}

impl ResourceRef {
    /// ResourceRef names a single resource. Only one of the fields should be set.
    pub fn new() -> ResourceRef {
        ResourceRef {
            address: None,
            application_id: None,
            asset_id: None,
            r#box: None,
            holding: None,
            local: None,
        }
    }
}