pub struct RunnableConfig {
pub tags: Vec<String>,
pub metadata: HashMap<String, Value>,
pub max_concurrency: Option<usize>,
pub recursion_limit: Option<usize>,
pub run_id: Option<String>,
pub run_name: Option<String>,
}Expand description
Runtime configuration passed through runnable chains, including tags, metadata, concurrency limits, and run identification.
Fields§
§metadata: HashMap<String, Value>§max_concurrency: Option<usize>§recursion_limit: Option<usize>§run_id: Option<String>§run_name: Option<String>Implementations§
Source§impl RunnableConfig
impl RunnableConfig
pub fn with_run_name(self, name: impl Into<String>) -> Self
pub fn with_run_id(self, id: impl Into<String>) -> Self
pub fn with_max_concurrency(self, max: usize) -> Self
pub fn with_recursion_limit(self, limit: usize) -> Self
pub fn with_metadata(self, key: impl Into<String>, value: Value) -> Self
Trait Implementations§
Source§impl Clone for RunnableConfig
impl Clone for RunnableConfig
Source§fn clone(&self) -> RunnableConfig
fn clone(&self) -> RunnableConfig
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 RunnableConfig
impl Debug for RunnableConfig
Source§impl Default for RunnableConfig
impl Default for RunnableConfig
Source§fn default() -> RunnableConfig
fn default() -> RunnableConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunnableConfig
impl<'de> Deserialize<'de> for RunnableConfig
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 RunnableConfig
impl RefUnwindSafe for RunnableConfig
impl Send for RunnableConfig
impl Sync for RunnableConfig
impl Unpin for RunnableConfig
impl UnsafeUnpin for RunnableConfig
impl UnwindSafe for RunnableConfig
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