Enum croncat_sdk_tasks::msg::TasksExecuteMsg
source · pub enum TasksExecuteMsg {
UpdateConfig(UpdateConfigMsg),
CreateTask {
task: Box<TaskRequest>,
},
RemoveTask {
task_hash: String,
},
RemoveTaskByManager(TasksRemoveTaskByManager),
RescheduleTask(TasksRescheduleTask),
PauseContract {},
UnpauseContract {},
}
Variants§
UpdateConfig(UpdateConfigMsg)
CreateTask
Fields
§
task: Box<TaskRequest>
Allows any user or contract to pay for future txns based on a specific schedule contract, function id & other settings. When the task runs out of balance the task is no longer executed, any additional funds will be returned to task owner.
RemoveTask
Deletes a task in its entirety, returning any remaining balance to task owner.
RemoveTaskByManager(TasksRemoveTaskByManager)
Remove task, used by the manager if task reached it’s stop condition
RescheduleTask(TasksRescheduleTask)
Try to reschedule a task, if possible, used by the manager
PauseContract
Fields
Pauses all operations for this contract, can only be done by pause_admin
UnpauseContract
Fields
unpauses all operations for this contract, can only be unpaused by owner_addr
Trait Implementations§
source§impl Clone for TasksExecuteMsg
impl Clone for TasksExecuteMsg
source§fn clone(&self) -> TasksExecuteMsg
fn clone(&self) -> TasksExecuteMsg
Returns a copy 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 TasksExecuteMsg
impl Debug for TasksExecuteMsg
source§impl<'de> Deserialize<'de> for TasksExecuteMsg
impl<'de> Deserialize<'de> for TasksExecuteMsg
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 TasksExecuteMsg
impl JsonSchema for TasksExecuteMsg
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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<TasksExecuteMsg> for TasksExecuteMsg
impl PartialEq<TasksExecuteMsg> for TasksExecuteMsg
source§fn eq(&self, other: &TasksExecuteMsg) -> bool
fn eq(&self, other: &TasksExecuteMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.