[−][src]Struct fabric_contract::prelude::ContractDefn  
Internal definition of a contract
Implementations
impl ContractDefn[src]
pub fn new(c: Box<dyn Contract + Send>) -> ContractDefn[src]
pub fn add_tx_fn(self: &mut ContractDefn, tx: TransactionFn)[src]
pub fn add_new_method(
    self: &mut ContractDefn, 
    name: &str, 
    func: fn(_: &str) -> bool
)[src]
self: &mut ContractDefn,
name: &str,
func: fn(_: &str) -> bool
)
pub fn get_txfn(
    self: &ContractDefn, 
    name: &str
) -> Result<&TransactionFn, String>[src]
self: &ContractDefn,
name: &str
) -> Result<&TransactionFn, String>
pub fn invoke(
    self: &ContractDefn, 
    ctx: &TransactionContext, 
    name: String, 
    args: &[Vec<u8>], 
    transient: &HashMap<String, Vec<u8>>
) -> Result<WireBuffer, ContractError>[src]
self: &ContractDefn,
ctx: &TransactionContext,
name: String,
args: &[Vec<u8>],
transient: &HashMap<String, Vec<u8>>
) -> Result<WireBuffer, ContractError>
Auto Trait Implementations
impl !RefUnwindSafe for ContractDefn
impl Send for ContractDefn
impl !Sync for ContractDefn
impl Unpin for ContractDefn
impl !UnwindSafe for ContractDefn
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,