Struct croncat_sdk_tasks::types::TaskExecutionInfo
source · pub struct TaskExecutionInfo {
pub block_height: u64,
pub tx_info: Option<TransactionInfo>,
pub task_hash: String,
pub owner_addr: Addr,
pub amount_for_one_task: AmountForOneTask,
pub version: String,
}
Expand description
This struct is used in two important places.
On the tasks contract, when create_task
is called, this struct
is returned in the binary data field of the response.
It’s also saved on the manager contract before proxy_call
, allowing for validation
on the receiving contract, by doing a raw query to the manager’s state key LAST_TASK_EXECUTION_INFO_KEY.
Fields§
§block_height: u64
§tx_info: Option<TransactionInfo>
§task_hash: String
§owner_addr: Addr
§amount_for_one_task: AmountForOneTask
§version: String
Trait Implementations§
source§impl Clone for TaskExecutionInfo
impl Clone for TaskExecutionInfo
source§fn clone(&self) -> TaskExecutionInfo
fn clone(&self) -> TaskExecutionInfo
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 TaskExecutionInfo
impl Debug for TaskExecutionInfo
source§impl Default for TaskExecutionInfo
impl Default for TaskExecutionInfo
source§impl<'de> Deserialize<'de> for TaskExecutionInfo
impl<'de> Deserialize<'de> for TaskExecutionInfo
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 TaskExecutionInfo
impl JsonSchema for TaskExecutionInfo
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<TaskExecutionInfo> for TaskExecutionInfo
impl PartialEq<TaskExecutionInfo> for TaskExecutionInfo
source§fn eq(&self, other: &TaskExecutionInfo) -> bool
fn eq(&self, other: &TaskExecutionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TaskExecutionInfo
impl Serialize for TaskExecutionInfo
impl StructuralPartialEq for TaskExecutionInfo
Auto Trait Implementations§
impl RefUnwindSafe for TaskExecutionInfo
impl Send for TaskExecutionInfo
impl Sync for TaskExecutionInfo
impl Unpin for TaskExecutionInfo
impl UnwindSafe for TaskExecutionInfo
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