pub struct StoreContext {
pub answers: Value,
pub state: Value,
pub config: Value,
pub payload_out: Value,
pub secrets: Value,
}Expand description
Context mutated by store operations.
Fields§
§answers: Value§state: Value§config: Value§payload_out: Value§secrets: ValueImplementations§
Source§impl StoreContext
impl StoreContext
pub fn from_value(ctx: &Value) -> Self
pub fn apply_ops( &mut self, ops: &[StoreOp], policy: Option<&SecretsPolicy>, host_available: bool, ) -> Result<(), StoreError>
pub fn to_value(&self) -> Value
Trait Implementations§
Source§impl Clone for StoreContext
impl Clone for StoreContext
Source§fn clone(&self) -> StoreContext
fn clone(&self) -> StoreContext
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 moreAuto Trait Implementations§
impl Freeze for StoreContext
impl RefUnwindSafe for StoreContext
impl Send for StoreContext
impl Sync for StoreContext
impl Unpin for StoreContext
impl UnsafeUnpin for StoreContext
impl UnwindSafe for StoreContext
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