pub struct ApprovalConfig {
pub message: String,
pub description: Option<String>,
pub approvers: Vec<String>,
pub timeout_seconds: Option<u64>,
pub context_data: Value,
}Expand description
Configuration for approval nodes (human-in-the-loop)
Fields§
§message: StringMessage to show to the approver
description: Option<String>Description of what is being approved
approvers: Vec<String>Required approvers (user IDs or roles)
timeout_seconds: Option<u64>Timeout in seconds (if no approval, workflow fails)
context_data: ValueData to show in approval UI (e.g., context, results)
Trait Implementations§
Source§impl Clone for ApprovalConfig
impl Clone for ApprovalConfig
Source§fn clone(&self) -> ApprovalConfig
fn clone(&self) -> ApprovalConfig
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 ApprovalConfig
impl Debug for ApprovalConfig
Source§impl<'de> Deserialize<'de> for ApprovalConfig
impl<'de> Deserialize<'de> for ApprovalConfig
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 ApprovalConfig
impl RefUnwindSafe for ApprovalConfig
impl Send for ApprovalConfig
impl Sync for ApprovalConfig
impl Unpin for ApprovalConfig
impl UnwindSafe for ApprovalConfig
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