Skip to main content

ContractClient

Trait ContractClient 

Source
pub trait ContractClient<'a>: Sized {
    // Required method
    fn new(near: &'a Near, contract_id: AccountId) -> Self;
}
Expand description

Trait for contract client constructors.

This trait is implemented by the generated client structs to enable construction via Near::contract.

Required Methods§

Source

fn new(near: &'a Near, contract_id: AccountId) -> Self

Create a new contract client.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§