pub struct ApprovalRequest {
pub id: String,
pub step_id: String,
pub message: String,
pub created_at: DateTime<Utc>,
pub timeout_ms: u64,
pub approved: bool,
pub decision: Option<ApprovalDecision>,
pub approved_at: Option<DateTime<Utc>>,
pub comments: Option<String>,
}Expand description
Approval request for a workflow step
Fields§
§id: StringUnique approval request ID
step_id: StringStep ID requiring approval
message: StringApproval message
created_at: DateTime<Utc>Request creation time
timeout_ms: u64Request timeout
approved: boolWhether approval has been received
decision: Option<ApprovalDecision>Approval decision (if received)
approved_at: Option<DateTime<Utc>>Approval timestamp (if received)
comments: Option<String>Approval comments
Implementations§
Source§impl ApprovalRequest
impl ApprovalRequest
Trait Implementations§
Source§impl Clone for ApprovalRequest
impl Clone for ApprovalRequest
Source§fn clone(&self) -> ApprovalRequest
fn clone(&self) -> ApprovalRequest
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 ApprovalRequest
impl Debug for ApprovalRequest
Source§impl<'de> Deserialize<'de> for ApprovalRequest
impl<'de> Deserialize<'de> for ApprovalRequest
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 ApprovalRequest
impl RefUnwindSafe for ApprovalRequest
impl Send for ApprovalRequest
impl Sync for ApprovalRequest
impl Unpin for ApprovalRequest
impl UnwindSafe for ApprovalRequest
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