Struct rgb20::Asset[][src]

pub struct Asset { /* fields omitted */ }

Implementations

impl Asset[src]

pub fn genesis(&self) -> &String[src]

pub fn id(&self) -> &ContractId[src]

pub fn ticker(&self) -> &String[src]

pub fn name(&self) -> &String[src]

pub fn description(&self) -> &Option<String>[src]

pub fn supply(&self) -> &Supply[src]

pub fn chain(&self) -> &Chain[src]

pub fn decimal_precision(&self) -> &u8[src]

pub fn date(&self) -> &NaiveDateTime[src]

pub fn known_issues(&self) -> &Vec<Issue>[src]

pub fn known_inflation(&self) -> &BTreeMap<OutPoint, AtomicValue>[src]

pub fn known_allocations(&self) -> &Vec<Allocation>[src]

impl Asset[src]

pub fn with(
    genesis: String,
    id: ContractId,
    ticker: String,
    name: String,
    description: Option<String>,
    supply: Supply,
    chain: Chain,
    decimal_precision: u8,
    date: NaiveDateTime,
    known_issues: Vec<Issue>,
    known_inflation: BTreeMap<OutPoint, AtomicValue>,
    known_allocations: Vec<Allocation>
) -> Asset
[src]

pub fn accounting_supply(&self, measure: SupplyMeasure) -> AccountingValue[src]

pub fn known_atomic_value(&self) -> AtomicValue[src]

pub fn known_filtered_atomic_value<F>(&self, filter: F) -> AtomicValue where
    F: Fn(&Allocation) -> bool
[src]

pub fn known_accounting_value(&self) -> AccountingValue[src]

pub fn known_filtered_accounting_value<F>(&self, filter: F) -> AccountingValue where
    F: Fn(&Allocation) -> bool
[src]

impl Asset[src]

pub fn add_issue(&self, _issue: Transition) -> Supply[src]

pub fn allocations(&self, outpoint: OutPoint) -> Vec<Allocation>[src]

pub fn add_allocation(
    &mut self,
    outpoint: OutPoint,
    node_id: NodeId,
    index: u16,
    value: Revealed
) -> bool
[src]

pub fn remove_allocation(
    &mut self,
    outpoint: OutPoint,
    node_id: NodeId,
    index: u16,
    value: Revealed
) -> bool
[src]

Trait Implementations

impl Clone for Asset[src]

impl Debug for Asset[src]

impl Display for Asset[src]

impl PartialEq<Asset> for Asset[src]

impl StrictDecode for Asset[src]

impl StrictEncode for Asset[src]

impl StructuralPartialEq for Asset[src]

impl TryFrom<Genesis> for Asset[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Asset

impl Send for Asset

impl Sync for Asset

impl Unpin for Asset

impl UnwindSafe for Asset

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,