Enum croncat_sdk_tasks::msg::TasksQueryMsg
source · pub enum TasksQueryMsg {
Show 15 variants
Config {},
Paused {},
TasksTotal {},
CurrentTaskInfo {},
CurrentTask {},
Task {
task_hash: String,
},
Tasks {
from_index: Option<u64>,
limit: Option<u64>,
},
EventedIds {
from_index: Option<u64>,
limit: Option<u64>,
},
EventedHashes {
id: Option<u64>,
from_index: Option<u64>,
limit: Option<u64>,
},
EventedTasks {
start: Option<u64>,
from_index: Option<u64>,
limit: Option<u64>,
},
TasksByOwner {
owner_addr: String,
from_index: Option<u64>,
limit: Option<u64>,
},
TaskHash {
task: Box<Task>,
},
SlotHashes {
slot: Option<u64>,
},
SlotIds {
from_index: Option<u64>,
limit: Option<u64>,
},
SlotTasksTotal {
offset: Option<u64>,
},
}
Variants§
Config
Fields
Paused
Fields
Helper for query responses on versioned contracts
TasksTotal
Fields
Get the total amount of tasks
CurrentTaskInfo
Fields
returns the total task count & last task creation timestamp for agent nomination checks
CurrentTask
Fields
Get next task to be done
Task
Get task by the task hash
Tasks
Get list of all tasks
EventedIds
EventedHashes
EventedTasks
Get list of event driven tasks
TasksByOwner
Get tasks created by the given address
TaskHash
Simulate task_hash by the given task
SlotHashes
Get slot hashes by given slot
SlotIds
Get active slots
SlotTasksTotal
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 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(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 ==
.source§impl QueryResponses for TasksQueryMsg
impl QueryResponses for TasksQueryMsg
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas( ) -> Result<BTreeMap<String, RootSchema, Global>, IntegrityError>
source§impl Serialize for TasksQueryMsg
impl Serialize for TasksQueryMsg
impl StructuralPartialEq for TasksQueryMsg
Auto Trait Implementations§
impl RefUnwindSafe for TasksQueryMsg
impl Send for TasksQueryMsg
impl Sync for TasksQueryMsg
impl Unpin for TasksQueryMsg
impl UnwindSafe for TasksQueryMsg
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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