[−][src]Struct lnpbp::bp::chain::AssetParams
Parameters for a given asset, which are shared between different types of Layer 1, 2 and 3 assets.
Fields
ticker: String
Short asset name, or ticker, like BTC for bitcoin. Case-sensitive with default use of uppercase.
unit_of_accounting: String
Full name for a given asset as a unit of accounting, for instance "Bitcoin". Also case-sensitive.
indivisible_unit: String
Full name for the smallest indivisible unit, like "satoshi" for Bitcoin network
divisibility: u64
Number of smallest indivisible units inside the unit of accounting
asset_id: AssetId
Identifier of the asset; for native chain assets matches to the
genesis block hash of the chain itself (i.e.
ChainParams::genesis_hash), for other assets are specific to a given
asset system: for confidential assets this is an AssetId
, for
RGB – hash of asset genesis transition, i.e. ContractId
.
asset_system: AssetSystem
AssetSystem in which asset is defined
Trait Implementations
impl Clone for AssetParams
[src]
fn clone(&self) -> AssetParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AssetParams
[src]
impl Display for AssetParams
[src]
impl Eq for AssetParams
[src]
impl Hash for AssetParams
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for AssetParams
[src]
fn cmp(&self, other: &AssetParams) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AssetParams> for AssetParams
[src]
impl PartialOrd<AssetParams> for AssetParams
[src]
fn partial_cmp(&self, other: &AssetParams) -> Option<Ordering>
[src]
fn lt(&self, other: &AssetParams) -> bool
[src]
fn le(&self, other: &AssetParams) -> bool
[src]
fn gt(&self, other: &AssetParams) -> bool
[src]
fn ge(&self, other: &AssetParams) -> bool
[src]
impl StrictDecode for AssetParams
[src]
type Error = Error
Implementation-dependent error type
fn strict_decode<D: Read>(d: D) -> Result<Self, Self::Error>
[src]
impl StrictEncode for AssetParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for AssetParams
impl Send for AssetParams
impl Sync for AssetParams
impl Unpin for AssetParams
impl UnwindSafe for AssetParams
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,