Struct croncat_sdk_tasks::types::Transform
source · pub struct Transform {
pub action_idx: u64,
pub query_idx: u64,
pub action_path: PathToValue,
pub query_response_path: PathToValue,
}
Expand description
Transforms of the tasks actions
Fields§
§action_idx: u64
Action index to update first action would be “0”
query_idx: u64
Query index of the new data for this action first query would be “0”
action_path: PathToValue
Action key path to the value that should get replaced for example: X: {Y: {Z: value}} [X,Y,Z] to reach that value
query_response_path: PathToValue
Query response key’s path to the value that needs to be taken to replace value from the above for example query gave that response: A: {B: {C: value}} In order to reach a value [A,B,C] should be used as input
Trait Implementations§
source§impl<'de> Deserialize<'de> for Transform
impl<'de> Deserialize<'de> for Transform
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 Transform
impl JsonSchema for Transform
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 more