pub struct TaskVars {
pub id: String,
pub pid: String,
pub tid: String,
pub data: String,
pub sealed: String,
pub v: i32,
}Expand description
Scope vars of one task, stored apart from the task’s lifecycle row so
state transitions never rewrite variable bytes (and a variable write
never needs to touch another task’s row). One row per task scope, keyed by
the same composite pid + tid id as its Task row; data holds the
task’s own variable scope, sealed the resolver-written sealed scope.
Rows are written when a scope’s vars actually change and are dropped with
the process.
Fields§
§id: String§pid: String§tid: String§data: String§sealed: String§v: i32Trait Implementations§
Source§impl DbCollectionIden for TaskVars
impl DbCollectionIden for TaskVars
fn iden() -> StoreIden
fn indexed_fields() -> &'static [&'static str]
fn version() -> i32
fn upcast(value: JsonValue) -> Result<Self>
Source§fn ordered_index_fields() -> &'static [&'static str]
fn ordered_index_fields() -> &'static [&'static str]
Indexed fields whose index-key order is also the query
order_by
order. A field must only be listed when every stored value has the
same JSON type and that type is encoded in order-preserving form
(currently the fixed-width unsigned/positive integer encoding).Source§fn upcast_current(value: JsonValue) -> Result<Self>where
Self: DeserializeOwned,
fn upcast_current(value: JsonValue) -> Result<Self>where
Self: DeserializeOwned,
Default deserialization for the current version — can be called by
overriding
upcast impls when the version matches Self::version().Source§impl<'de> Deserialize<'de> for TaskVars
impl<'de> Deserialize<'de> for TaskVars
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
Auto Trait Implementations§
impl Freeze for TaskVars
impl RefUnwindSafe for TaskVars
impl Send for TaskVars
impl Sync for TaskVars
impl Unpin for TaskVars
impl UnsafeUnpin for TaskVars
impl UnwindSafe for TaskVars
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