pub struct GraphContext {
pub state: HashMap<String, Value>,
}Expand description
Shared state flowing through a graph. Nodes read and write entries.
Fields§
§state: HashMap<String, Value>Key-value state shared across all nodes.
Implementations§
Source§impl GraphContext
impl GraphContext
Sourcepub fn with_input(self, input: impl Into<String>) -> Self
pub fn with_input(self, input: impl Into<String>) -> Self
Convenience: set the “input” key.
Trait Implementations§
Source§impl Clone for GraphContext
impl Clone for GraphContext
Source§fn clone(&self) -> GraphContext
fn clone(&self) -> GraphContext
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 moreSource§impl Debug for GraphContext
impl Debug for GraphContext
Source§impl Default for GraphContext
impl Default for GraphContext
Source§fn default() -> GraphContext
fn default() -> GraphContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphContext
impl RefUnwindSafe for GraphContext
impl Send for GraphContext
impl Sync for GraphContext
impl Unpin for GraphContext
impl UnsafeUnpin for GraphContext
impl UnwindSafe for GraphContext
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