pub struct CwApi {
pub contract_name: String,
pub contract_version: String,
pub instantiate: Option<Schema>,
pub execute: Option<Schema>,
pub query: Option<Schema>,
pub migrate: Option<Schema>,
pub sudo: Option<Schema>,
pub responses: Option<BTreeMap<String, Schema>>,
}
Expand description
Rust representation of a contract’s API.
Fields§
§contract_name: String
§contract_version: String
§instantiate: Option<Schema>
§execute: Option<Schema>
§query: Option<Schema>
§migrate: Option<Schema>
§sudo: Option<Schema>
§responses: Option<BTreeMap<String, Schema>>
A mapping of query variants to response types
Implementations§
Auto Trait Implementations§
impl Freeze for CwApi
impl RefUnwindSafe for CwApi
impl Send for CwApi
impl Sync for CwApi
impl Unpin for CwApi
impl UnwindSafe for CwApi
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