pub struct ContractFunction {
pub name: String,
pub doc: String,
pub parameters: Vec<ContractParameter>,
pub outputs: Vec<ContractType>,
}Expand description
A single exported contract function.
Fields§
§name: StringFunction name (the scSymbol).
doc: StringDoc comment attached to the function, if any.
parameters: Vec<ContractParameter>Ordered input parameters.
outputs: Vec<ContractType>Ordered output types.
Trait Implementations§
Source§impl Clone for ContractFunction
impl Clone for ContractFunction
Source§impl Debug for ContractFunction
impl Debug for ContractFunction
Source§impl<'de> Deserialize<'de> for ContractFunction
impl<'de> Deserialize<'de> for ContractFunction
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
impl Eq for ContractFunction
Source§impl PartialEq for ContractFunction
impl PartialEq for ContractFunction
Source§impl Serialize for ContractFunction
impl Serialize for ContractFunction
impl StructuralPartialEq for ContractFunction
Auto Trait Implementations§
impl Freeze for ContractFunction
impl RefUnwindSafe for ContractFunction
impl Send for ContractFunction
impl Sync for ContractFunction
impl Unpin for ContractFunction
impl UnsafeUnpin for ContractFunction
impl UnwindSafe for ContractFunction
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.