pub struct ContractMeta {
pub testnet: bool,
pub consensus: Consensus,
pub timestamp: i64,
pub features: ReservedBytes<6>,
pub name: ContractName,
pub issuer: Identity,
}
Expand description
Metadata about the contract.
Fields§
§testnet: bool
Indicated whether the contract is a test contract.
consensus: Consensus
Consensus layer used by the contract.
timestamp: i64
Timestamp of the moment the contract is issued
features: ReservedBytes<6>
A set of feature flags.
RGB-I-0 consensus has no flags, which is enforced with ReservedBytes
structure.
name: ContractName
A name of the contract.
issuer: Identity
An identity of the contract issuer.
If no identity is given, should be set to ssi:anonymous
(Identity::default
).
Trait Implementations§
Source§impl Clone for ContractMeta
impl Clone for ContractMeta
Source§fn clone(&self) -> ContractMeta
fn clone(&self) -> ContractMeta
Returns a duplicate 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 ContractMeta
impl Debug for ContractMeta
Source§impl<'de> Deserialize<'de> for ContractMeta
impl<'de> Deserialize<'de> for ContractMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContractMeta
impl PartialEq for ContractMeta
Source§impl Serialize for ContractMeta
impl Serialize for ContractMeta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for ContractMeta
impl StrictDecode for ContractMeta
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<ContractMeta, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for ContractMeta
impl StrictDumb for ContractMeta
fn strict_dumb() -> ContractMeta
Source§impl StrictEncode for ContractMeta
impl StrictEncode for ContractMeta
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for ContractMeta
impl StrictStruct for ContractMeta
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for ContractMeta
impl StrictType for ContractMeta
const STRICT_LIB_NAME: &'static str = LIB_NAME_ULTRASONIC
fn strict_name() -> Option<TypeName>
impl Eq for ContractMeta
impl StrictProduct for ContractMeta
impl StructuralPartialEq for ContractMeta
Auto Trait Implementations§
impl Freeze for ContractMeta
impl RefUnwindSafe for ContractMeta
impl Send for ContractMeta
impl Sync for ContractMeta
impl Unpin for ContractMeta
impl UnwindSafe for ContractMeta
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> 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.