pub struct StorageOutpostCode(pub u64);
Expand description
StorageOutpostCode
is a wrapper around u64 that provides helpers for
initializing this contract.
Tuple Fields§
§0: u64
Implementations§
Source§impl StorageOutpostCode
impl StorageOutpostCode
Sourcepub fn instantiate(
&self,
msg: impl Into<InstantiateMsg>,
label: impl Into<String>,
admin: Option<impl Into<String>>,
) -> StdResult<CosmosMsg>
pub fn instantiate( &self, msg: impl Into<InstantiateMsg>, label: impl Into<String>, admin: Option<impl Into<String>>, ) -> StdResult<CosmosMsg>
instantiate
creates a WasmMsg::Instantiate
message targeting this code
§Errors
This function returns an error if the given message cannot be serialized
Trait Implementations§
Source§impl Clone for StorageOutpostCode
impl Clone for StorageOutpostCode
Source§fn clone(&self) -> StorageOutpostCode
fn clone(&self) -> StorageOutpostCode
Returns a duplicate 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 moreSource§impl Debug for StorageOutpostCode
impl Debug for StorageOutpostCode
Source§impl<'de> Deserialize<'de> for StorageOutpostCode
impl<'de> Deserialize<'de> for StorageOutpostCode
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
Source§impl JsonSchema for StorageOutpostCode
impl JsonSchema for StorageOutpostCode
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for StorageOutpostCode
impl PartialEq for StorageOutpostCode
Source§impl Serialize for StorageOutpostCode
impl Serialize for StorageOutpostCode
impl Eq for StorageOutpostCode
impl StructuralPartialEq for StorageOutpostCode
Auto Trait Implementations§
impl Freeze for StorageOutpostCode
impl RefUnwindSafe for StorageOutpostCode
impl Send for StorageOutpostCode
impl Sync for StorageOutpostCode
impl Unpin for StorageOutpostCode
impl UnwindSafe for StorageOutpostCode
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