[−][src]Struct stellar_toml::Currency
Contains information about a currency supported by the organization.
Fields
code: Option<String>
Token code.
code_template: Option<String>
A pattern with ?
as a single character wildcard.
Allows a Currency
entry to apply to multiple assets that
share the same info. An example is futures, where the only
difference between issues is the date of the
contract. E.g. CORN????????
to match codes such as
CORN20180604
.
issuer: Option<PublicKey>
Token issuer Stellar public key.
status: Option<CurrencyStatus>
Status of token.
Allows issuer to mark whether token is dead/for testing/for private use or is live and should be listed in live exchanges.
display_decimals: Option<u8>
Preference for number of decimals to show when a client displays currency balance.
name: Option<String>
A short name for the token.
description: Option<String>
Description of token and what it represents.
conditions: Option<String>
Conditions on token.
image: Option<String>
URL to a PNG image on a transparent background representing token.
fixed_number: Option<i64>
Fixed number of tokens, if the number of tokens issued will never change.
max_number: Option<i64>
Max number of tokens, if there will never be more than max_number
tokens.
is_unlimited: Option<bool>
The number of tokens is dilutable at the issuer's discretion.
is_asset_anchored: Option<bool>
true
if token can be redeemed for underlying asset, otherwise false
.
anchor_asset_type: Option<AnchoredCurrencyType>
Type of asset anchored.
anchor_asset: Option<String>
If anchored token, code / symbol for asset that token is anchored to.
For example, USD, BTC, SBUX, Address of real-estate investment property.
redemption_instructions: Option<String>
If anchored token, these are instructions to redeem the underlying asset from tokens.
collateral_addresses: Vec<String>
this is an anchored crypto token, list of one or more public addresses that hold the assets for which you are issuing tokens.
collateral_address_messages: Vec<String>
Messages stating that funds in the collateral_addresses
list
are reserved to back the issued asset.
The message to put in this field for each entry in
collateral_addresses
: The assets in the account $PUBLIC_KEY are reserved to back $CODE issued by $ISSUER_ADDRESS on Stellar. Valid from $START to $END.
Replace $PUBLIC_KEY
with the account's public key, $CODE
with your asset code, $ISSUER_ADDRESS
with the issuing
Stellar address and $START
, $END
with the date range in
ISO 8601 for which the reserve is valid. $END
cannot be more
than a year in the future to ensure yearly renewals of the
commitment. collateral_addresses
can be used to externally
validate that you hold a reserve for the crypto funds you are
issuing on Stellar. Issuers that hold a provable 100% reserve
are prioritized by wallets and clients. Issuers not meeting
this standard may not be listed.
collateral_address_signatures: Vec<String>
These prove you control the collateral_addresses
.
For each address you list, sign the entry in
collateral_address_messages
with the address's private key
and add the resulting string to this list as a base64-encoded
raw signature.
regulated: Option<bool>
Indicates whether or not this is a SEP-0008 regulated asset. If missing, false is assumed.
approval_server: Option<Uri>
Url of a SEP-0008 compliant approval service that signs validated transactions.
approval_criteria: Option<String>
A human readable string that explains the issuer's requirements for approving transactions.
Trait Implementations
impl Clone for Currency
[src]
impl Debug for Currency
[src]
impl<'de> Deserialize<'de> for Currency
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Currency
[src]
Auto Trait Implementations
impl RefUnwindSafe for Currency
[src]
impl Send for Currency
[src]
impl Sync for Currency
[src]
impl Unpin for Currency
[src]
impl UnwindSafe for Currency
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,