Skip to main content

to_reported

Function to_reported 

Source
pub fn to_reported(value: &Value, ty: &TypeDesc) -> Result<Value, Misfit>
Expand description

A value reported from outside Python (schedr task-ctx resource set), in the form it is stored in: as to_stored, and a dataclass gives every field, since nothing fills in its defaults before a command reads the value (t"{cluster.value.region}").

ยงErrors

As to_stored, and a dataclass field left out.