pub struct ContractInterface {
pub functions: Vec<ContractInterfaceFunction>,
pub variables: Vec<ContractInterfaceVariable>,
pub maps: Vec<ContractInterfaceMap>,
pub fungible_tokens: Vec<ContractInterfaceFungibleTokens>,
pub non_fungible_tokens: Vec<ContractInterfaceNonFungibleTokens>,
pub epoch: StacksEpochId,
pub clarity_version: ClarityVersion,
}
Fields§
§functions: Vec<ContractInterfaceFunction>
§variables: Vec<ContractInterfaceVariable>
§maps: Vec<ContractInterfaceMap>
§fungible_tokens: Vec<ContractInterfaceFungibleTokens>
§non_fungible_tokens: Vec<ContractInterfaceNonFungibleTokens>
§epoch: StacksEpochId
§clarity_version: ClarityVersion
Implementations§
§impl ContractInterface
impl ContractInterface
pub fn new( epoch: StacksEpochId, clarity_version: ClarityVersion ) -> ContractInterface
pub fn serialize(&self) -> String
Trait Implementations§
§impl Clone for ContractInterface
impl Clone for ContractInterface
§fn clone(&self) -> ContractInterface
fn clone(&self) -> ContractInterface
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 more§impl Debug for ContractInterface
impl Debug for ContractInterface
§impl<'de> Deserialize<'de> for ContractInterface
impl<'de> Deserialize<'de> for ContractInterface
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ContractInterface, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ContractInterface, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for ContractInterface
impl PartialEq for ContractInterface
§fn eq(&self, other: &ContractInterface) -> bool
fn eq(&self, other: &ContractInterface) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for ContractInterface
impl Serialize for ContractInterface
§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
impl StructuralPartialEq for ContractInterface
Auto Trait Implementations§
impl RefUnwindSafe for ContractInterface
impl Send for ContractInterface
impl Sync for ContractInterface
impl Unpin for ContractInterface
impl UnwindSafe for ContractInterface
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