1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* 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,
}
}
}