pub struct CronCatTaskExecutionInfo {
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 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 TaskExecutionInfo
impl Debug for TaskExecutionInfo
Source§impl Default for TaskExecutionInfo
impl Default for TaskExecutionInfo
Source§fn default() -> TaskExecutionInfo
fn default() -> TaskExecutionInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskExecutionInfo
impl<'de> Deserialize<'de> for TaskExecutionInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskExecutionInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskExecutionInfo, <__D as Deserializer<'de>>::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 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 TaskExecutionInfo
impl PartialEq for TaskExecutionInfo
Source§impl Serialize for TaskExecutionInfo
impl Serialize for TaskExecutionInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TaskExecutionInfo
Auto Trait Implementations§
impl Freeze for TaskExecutionInfo
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