Struct clarity_repl::clarity::codec::transaction::AssetInfo
source · [−]pub struct AssetInfo {
pub contract_address: StacksAddress,
pub contract_name: ContractName,
pub asset_name: ClarityName,
}
Expand description
Encoding of an asset type identifier
Fields
contract_address: StacksAddress
contract_name: ContractName
asset_name: ClarityName
Trait Implementations
sourceimpl<'de> Deserialize<'de> for AssetInfo
impl<'de> Deserialize<'de> for AssetInfo
sourcefn 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
sourceimpl StacksMessageCodec for AssetInfo
impl StacksMessageCodec for AssetInfo
sourcefn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), CodecError>
fn consensus_serialize<W: Write>(&self, fd: &mut W) -> Result<(), CodecError>
serialize implementors should never error unless there is an underlying
failure in writing to the
fd
Read morefn consensus_deserialize<R: Read>(fd: &mut R) -> Result<AssetInfo, CodecError>
impl StructuralPartialEq for AssetInfo
Auto Trait Implementations
impl RefUnwindSafe for AssetInfo
impl Send for AssetInfo
impl Sync for AssetInfo
impl Unpin for AssetInfo
impl UnwindSafe for AssetInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more