pub struct CryptoWallet {Show 40 fields
pub id: String,
pub schema: String,
pub account_id: Option<Vec<String>>,
pub address: Option<Vec<String>>,
pub address_entity: Option<Vec<String>>,
pub aleph_url: Option<Vec<String>>,
pub alias: Option<Vec<String>>,
pub amount: Option<Vec<f64>>,
pub amount_eur: Option<Vec<f64>>,
pub amount_usd: Option<Vec<f64>>,
pub balance: Option<Vec<f64>>,
pub balance_date: Option<Vec<String>>,
pub country: Option<Vec<String>>,
pub created_at: Option<Vec<String>>,
pub creation_date: Option<Vec<String>>,
pub currency: Option<Vec<String>>,
pub currency_symbol: Option<Vec<String>>,
pub description: Option<Vec<String>>,
pub holder: Option<Vec<String>>,
pub index_text: Option<Vec<String>>,
pub keywords: Option<Vec<String>>,
pub managing_exchange: Option<Vec<String>>,
pub modified_at: Option<Vec<String>>,
pub name: Vec<String>,
pub notes: Option<Vec<String>>,
pub previous_name: Option<Vec<String>>,
pub private_key: Option<Vec<String>>,
pub program: Option<Vec<String>>,
pub program_id: Option<Vec<String>>,
pub proof: Option<Vec<String>>,
pub public_key: Option<Vec<String>>,
pub publisher: Option<Vec<String>>,
pub publisher_url: Option<Vec<String>>,
pub retrieved_at: Option<Vec<String>>,
pub source_url: Option<Vec<String>>,
pub summary: Option<Vec<String>>,
pub topics: Option<Vec<String>>,
pub weak_alias: Option<Vec<String>>,
pub wikidata_id: Option<Vec<String>>,
pub wikipedia_url: Option<Vec<String>>,
}Expand description
FTM Schema: Cryptocurrency wallet
Fields§
§id: String§schema: String§account_id: Option<Vec<String>>Property: Account ID
address: Option<Vec<String>>Property: Address
address_entity: Option<Vec<String>>Property: Address
aleph_url: Option<Vec<String>>Property: Aleph URL
alias: Option<Vec<String>>Property: Alias
amount: Option<Vec<f64>>Property: Amount
amount_eur: Option<Vec<f64>>Property: Amount in EUR
amount_usd: Option<Vec<f64>>Property: Amount in USD
balance: Option<Vec<f64>>Property: Balance
balance_date: Option<Vec<String>>Property: Balance date
country: Option<Vec<String>>Property: Country
created_at: Option<Vec<String>>Property: Created at
creation_date: Option<Vec<String>>Property: Creation date
currency: Option<Vec<String>>Property: Currency
currency_symbol: Option<Vec<String>>Property: Currency short code
description: Option<Vec<String>>Property: Description
holder: Option<Vec<String>>Property: Wallet holder
index_text: Option<Vec<String>>Property: Index text
keywords: Option<Vec<String>>Property: Keywords
managing_exchange: Option<Vec<String>>Property: Managing exchange
modified_at: Option<Vec<String>>Property: Modified on
name: Vec<String>Property: Name
notes: Option<Vec<String>>Property: Notes
previous_name: Option<Vec<String>>Property: Previous name
private_key: Option<Vec<String>>Property: Private key
program: Option<Vec<String>>Property: Program
program_id: Option<Vec<String>>Property: Program ID
proof: Option<Vec<String>>Property: Source document
public_key: Option<Vec<String>>Property: Address
publisher: Option<Vec<String>>Property: Publishing source
publisher_url: Option<Vec<String>>Property: Publishing source URL
retrieved_at: Option<Vec<String>>Property: Retrieved on
source_url: Option<Vec<String>>Property: Source link
summary: Option<Vec<String>>Property: Summary
topics: Option<Vec<String>>Property: Topics
weak_alias: Option<Vec<String>>Property: Weak alias
wikidata_id: Option<Vec<String>>Property: Wikidata ID
wikipedia_url: Option<Vec<String>>Property: Wikipedia Article
Implementations§
Source§impl CryptoWallet
impl CryptoWallet
Sourcepub fn builder() -> CryptoWalletBuilder
pub fn builder() -> CryptoWalletBuilder
Create an instance of CryptoWallet using the builder syntax
Source§impl CryptoWallet
impl CryptoWallet
Sourcepub fn new(id: impl Into<String>) -> Self
👎Deprecated: Use the builder() method instead to ensure required fields are set
pub fn new(id: impl Into<String>) -> Self
Create a new entity with the given ID
Sourcepub fn schema_name() -> &'static str
pub fn schema_name() -> &'static str
Get the schema name
Sourcepub fn to_ftm_json(&self) -> Result<String, Error>
pub fn to_ftm_json(&self) -> Result<String, Error>
Serialize to standard FTM nested JSON format
Produces {"id": "...", "schema": "...", "properties": {...}}
Trait Implementations§
Source§impl Clone for CryptoWallet
impl Clone for CryptoWallet
Source§fn clone(&self) -> CryptoWallet
fn clone(&self) -> CryptoWallet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more