Struct croncat_sdk_tasks::types::TaskRequest
source · pub struct TaskRequest {
pub interval: Interval,
pub boundary: Option<Boundary>,
pub stop_on_fail: bool,
pub actions: Vec<Action>,
pub queries: Option<Vec<CosmosQuery>>,
pub transforms: Option<Vec<Transform>>,
pub cw20: Option<Cw20Coin>,
}
Expand description
Request to create a task
Fields§
§interval: Interval
§boundary: Option<Boundary>
§stop_on_fail: bool
§actions: Vec<Action>
§queries: Option<Vec<CosmosQuery>>
§transforms: Option<Vec<Transform>>
§cw20: Option<Cw20Coin>
How much of cw20 coin is attached to this task This will be taken from the manager’s contract temporary “Users balance” and attached directly to the task’s balance.
Note: Unlike other coins ( which get refunded to the task creator in the same transaction as task removal)
cw20’s will get moved back to the temporary “Users balance”.
This is done primarily to save up gas from executing another contract during proxy_call
Trait Implementations§
source§impl Clone for TaskRequest
impl Clone for TaskRequest
source§fn clone(&self) -> TaskRequest
fn clone(&self) -> TaskRequest
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 TaskRequest
impl Debug for TaskRequest
source§impl<'de> Deserialize<'de> for TaskRequest
impl<'de> Deserialize<'de> for TaskRequest
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 TaskRequest
impl JsonSchema for TaskRequest
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<TaskRequest> for TaskRequest
impl PartialEq<TaskRequest> for TaskRequest
source§fn eq(&self, other: &TaskRequest) -> bool
fn eq(&self, other: &TaskRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TaskRequest
impl Serialize for TaskRequest
impl StructuralPartialEq for TaskRequest
Auto Trait Implementations§
impl RefUnwindSafe for TaskRequest
impl Send for TaskRequest
impl Sync for TaskRequest
impl Unpin for TaskRequest
impl UnwindSafe for TaskRequest
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