Struct rgb20::Asset [−][src]
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]
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
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]
F: Fn(&Allocation) -> bool,
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]
F: Fn(&Allocation) -> bool,
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]
&mut self,
outpoint: OutPoint,
node_id: NodeId,
index: u16,
value: Revealed
) -> bool
pub fn remove_allocation(
&mut self,
outpoint: OutPoint,
node_id: NodeId,
index: u16,
value: Revealed
) -> bool
[src]
&mut self,
outpoint: OutPoint,
node_id: NodeId,
index: u16,
value: Revealed
) -> bool
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]
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
pub fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
impl StrictEncode for Asset
[src]
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
[src]
pub fn strict_serialize(&self) -> Result<Vec<u8, Global>, Error>
impl StructuralPartialEq for Asset
[src]
impl TryFrom<Genesis> for Asset
[src]
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]
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> 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub 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>,