Enum croncat_sdk_tasks::msg::TasksQueryMsg
source · pub enum TasksQueryMsg {
Show 14 variants
Config {},
TasksTotal {},
CurrentTaskInfo {},
TasksWithQueriesTotal {},
Tasks {
from_index: Option<u64>,
limit: Option<u64>,
},
TasksWithQueries {
from_index: Option<u64>,
limit: Option<u64>,
},
TasksByOwner {
owner_addr: String,
from_index: Option<u64>,
limit: Option<u64>,
},
Task {
task_hash: String,
},
TaskHash {
task: Box<Task>,
},
SlotHashes {
slot: Option<u64>,
},
SlotIds {
from_index: Option<u64>,
limit: Option<u64>,
},
SlotTasksTotal {
offset: Option<u64>,
},
CurrentTask {},
CurrentTaskWithQueries {
task_hash: String,
},
}
Variants§
Config
Fields
TasksTotal
Fields
Get the total amount of tasks
CurrentTaskInfo
Fields
CurrentTaskInfo
TasksWithQueriesTotal
Fields
Get the total amount of tasks with queries
Tasks
Get list of active tasks, without queries
TasksWithQueries
Get list of active tasks, with queries
TasksByOwner
Get tasks created by the given address
Task
Get task by the task hash
TaskHash
Simulate task_hash by the given task
SlotHashes
Get slot hashes by given slot
SlotIds
Get active slots
SlotTasksTotal
CurrentTask
Fields
Get next task to be done
CurrentTaskWithQueries
Get task with queries if it’s ready
To get task when it’s not ready query TasksQueryMsg::Task
instead
Trait Implementations§
source§impl Clone for TasksQueryMsg
impl Clone for TasksQueryMsg
source§fn clone(&self) -> TasksQueryMsg
fn clone(&self) -> TasksQueryMsg
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 TasksQueryMsg
impl Debug for TasksQueryMsg
source§impl<'de> Deserialize<'de> for TasksQueryMsg
impl<'de> Deserialize<'de> for TasksQueryMsg
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 TasksQueryMsg
impl JsonSchema for TasksQueryMsg
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<TasksQueryMsg> for TasksQueryMsg
impl PartialEq<TasksQueryMsg> for TasksQueryMsg
source§fn eq(&self, other: &TasksQueryMsg) -> bool
fn eq(&self, other: &TasksQueryMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.