pub struct ContractSuppl {
pub contract_id: ContractId,
pub ticker: TickerSuppl,
pub media_kit: TinyString,
pub global_state: TinyOrdMap<AssignmentType, OwnedStateSuppl>,
pub owned_state: TinyOrdMap<AssignmentType, OwnedStateSuppl>,
pub extensions: TinyOrdMap<u16, SmallBlob>,
}
Expand description
Contract supplement, providing non-consensus information about standard way of working with the contract data. Each contract can have only a single valid supplement; the supplement is attached to the contract via trusted provider signature (providers are ordered by the priority).
Fields§
§contract_id: ContractId
§ticker: TickerSuppl
§media_kit: TinyString
Media kit is a URL string which provides JSON information on media files and colors that should be used for UI,
global_state: TinyOrdMap<AssignmentType, OwnedStateSuppl>
§owned_state: TinyOrdMap<AssignmentType, OwnedStateSuppl>
§extensions: TinyOrdMap<u16, SmallBlob>
TLV-encoded custom fields.
Trait Implementations§
Source§impl Clone for ContractSuppl
impl Clone for ContractSuppl
Source§fn clone(&self) -> ContractSuppl
fn clone(&self) -> ContractSuppl
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContractSuppl
impl Debug for ContractSuppl
Source§impl<'de> Deserialize<'de> for ContractSuppl
impl<'de> Deserialize<'de> for ContractSuppl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ContractSuppl
impl Hash for ContractSuppl
Source§impl Ord for ContractSuppl
impl Ord for ContractSuppl
Source§fn cmp(&self, other: &ContractSuppl) -> Ordering
fn cmp(&self, other: &ContractSuppl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContractSuppl
impl PartialEq for ContractSuppl
Source§impl PartialOrd for ContractSuppl
impl PartialOrd for ContractSuppl
Source§impl Serialize for ContractSuppl
impl Serialize for ContractSuppl
Source§impl StrictDecode for ContractSuppl
impl StrictDecode for ContractSuppl
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for ContractSuppl
impl StrictDumb for ContractSuppl
fn strict_dumb() -> Self
Source§impl StrictEncode for ContractSuppl
impl StrictEncode for ContractSuppl
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictStruct for ContractSuppl
impl StrictStruct for ContractSuppl
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for ContractSuppl
impl StrictType for ContractSuppl
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_STD
fn strict_name() -> Option<TypeName>
impl Eq for ContractSuppl
impl StrictProduct for ContractSuppl
impl StructuralPartialEq for ContractSuppl
Auto Trait Implementations§
impl Freeze for ContractSuppl
impl RefUnwindSafe for ContractSuppl
impl Send for ContractSuppl
impl Sync for ContractSuppl
impl Unpin for ContractSuppl
impl UnwindSafe for ContractSuppl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.