pub struct EscalationPolicy {
pub policy_ref: PolicyRef,
pub dispatcher_required: bool,
pub timeout_ms: u64,
pub allowed_decisions: Vec<ApprovalDecisionKind>,
}Expand description
Defines the escalation policy SDK value. Construction records local state only; documented runtimes, executors, or ports own side effects.
Fields§
§policy_ref: PolicyRefPolicy reference that must be resolved by the host or runtime before execution.
dispatcher_required: boolWhether dispatcher required is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
timeout_ms: u64Timeout budget in milliseconds for the requested operation.
allowed_decisions: Vec<ApprovalDecisionKind>Allowlist for this policy or contract. Validation uses it to reject undeclared or policy-denied values.
Implementations§
Source§impl EscalationPolicy
impl EscalationPolicy
Sourcepub fn evaluate_dispatcher(&self, dispatcher_available: bool) -> PolicyOutcome
pub fn evaluate_dispatcher(&self, dispatcher_available: bool) -> PolicyOutcome
Evaluate dispatcher. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for EscalationPolicy
impl Clone for EscalationPolicy
Source§fn clone(&self) -> EscalationPolicy
fn clone(&self) -> EscalationPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EscalationPolicy
impl Debug for EscalationPolicy
Source§impl<'de> Deserialize<'de> for EscalationPolicy
impl<'de> Deserialize<'de> for EscalationPolicy
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
Source§impl PartialEq for EscalationPolicy
impl PartialEq for EscalationPolicy
Source§fn eq(&self, other: &EscalationPolicy) -> bool
fn eq(&self, other: &EscalationPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EscalationPolicy
impl Serialize for EscalationPolicy
impl Eq for EscalationPolicy
impl StructuralPartialEq for EscalationPolicy
Auto Trait Implementations§
impl Freeze for EscalationPolicy
impl RefUnwindSafe for EscalationPolicy
impl Send for EscalationPolicy
impl Sync for EscalationPolicy
impl Unpin for EscalationPolicy
impl UnsafeUnpin for EscalationPolicy
impl UnwindSafe for EscalationPolicy
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