pub struct AMPMsgConfig {
pub reply_on: ReplyOn,
pub exit_at_error: bool,
pub gas_limit: Option<u64>,
pub direct: bool,
pub ibc_config: Option<IBCConfig>,
}
Expand description
The configuration of the message to be sent.
Used when a sub message is generated for the given AMP Msg (only used in the case of Wasm Messages).
Fields§
§reply_on: ReplyOn
When the message should reply, defaults to Always
exit_at_error: bool
Determines whether the operation should terminate or proceed upon a failed message
gas_limit: Option<u64>
An optional imposed gas limit for the message
direct: bool
Whether to send the message directly to the given recipient
ibc_config: Option<IBCConfig>
Implementations§
Source§impl AMPMsgConfig
impl AMPMsgConfig
pub fn new( reply_on: Option<ReplyOn>, exit_at_error: Option<bool>, gas_limit: Option<u64>, ibc_config: Option<IBCConfig>, ) -> AMPMsgConfig
Sourcepub fn as_direct_msg(self) -> AMPMsgConfig
pub fn as_direct_msg(self) -> AMPMsgConfig
Converts the current AMP message to be a direct message to the given contract
Trait Implementations§
Source§impl Clone for AMPMsgConfig
impl Clone for AMPMsgConfig
Source§fn clone(&self) -> AMPMsgConfig
fn clone(&self) -> AMPMsgConfig
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 AMPMsgConfig
impl Debug for AMPMsgConfig
Source§impl Default for AMPMsgConfig
impl Default for AMPMsgConfig
Source§fn default() -> AMPMsgConfig
fn default() -> AMPMsgConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AMPMsgConfig
impl<'de> Deserialize<'de> for AMPMsgConfig
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 AMPMsgConfig
impl JsonSchema for AMPMsgConfig
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 AMPMsgConfig
impl PartialEq for AMPMsgConfig
Source§impl Serialize for AMPMsgConfig
impl Serialize for AMPMsgConfig
impl StructuralPartialEq for AMPMsgConfig
Auto Trait Implementations§
impl Freeze for AMPMsgConfig
impl RefUnwindSafe for AMPMsgConfig
impl Send for AMPMsgConfig
impl Sync for AMPMsgConfig
impl Unpin for AMPMsgConfig
impl UnwindSafe for AMPMsgConfig
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