Skip to main content

PendingWaitpointInfo

Struct PendingWaitpointInfo 

Source
#[non_exhaustive]
pub struct PendingWaitpointInfo { pub waitpoint_id: WaitpointId, pub waitpoint_key: String, pub state: String, pub required_signal_names: Vec<String>, pub created_at: TimestampMs, pub activated_at: Option<TimestampMs>, pub expires_at: Option<TimestampMs>, pub execution_id: ExecutionId, pub token_kid: String, pub token_fingerprint: String, }
Expand description

One entry in the read-only view of an execution’s active waitpoints.

Returned by EngineBackend::list_pending_waitpoints (and the GET /v1/executions/{id}/pending-waitpoints REST endpoint).

RFC-017 §8 schema rewrite (Stage D1). This struct no longer carries the raw HMAC waitpoint_token at the trait boundary — the backend emits only the sanitised (token_kid, token_fingerprint) pair. The HTTP handler (see ff-server::api::list_pending_waitpoints) wraps the trait response and re-injects the real token on the v0.7.x wire for one-release deprecation warning; the wire field is removed entirely at v0.8.0.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§waitpoint_id: WaitpointId§waitpoint_key: String§state: String

Current waitpoint state: pending, active, closed. Callers typically filter to pending or active.

§required_signal_names: Vec<String>

Signal names the resume condition is waiting for. Reviewers that need to drive a specific waitpoint — particularly when multiple concurrent waitpoints exist on one execution — filter on this to pick the right target.

An EMPTY vec means the condition matches any signal (wildcard, per lua/helpers.lua initialize_condition). Callers must not infer “no waitpoint” from empty; check state / length of the outer list for that.

§created_at: TimestampMs

Timestamp when the waitpoint record was first written.

§activated_at: Option<TimestampMs>

Timestamp when the waitpoint was activated (suspension landed). None while the waitpoint is still pending.

§expires_at: Option<TimestampMs>

Scheduled expiration timestamp. None if no timeout configured.

§execution_id: ExecutionId

Owning execution — surfaces without a separate lookup.

§token_kid: String

HMAC key identifier (the <kid> prefix of the stored waitpoint_token). Safe to expose — identifies which signing key minted the token without revealing the key material.

§token_fingerprint: String

16-hex-char (8-byte) fingerprint of the HMAC digest. Audit-friendly handle that correlates across logs without being replayable.

Implementations§

Source§

impl PendingWaitpointInfo

Source

pub fn new( waitpoint_id: WaitpointId, waitpoint_key: String, state: String, created_at: TimestampMs, execution_id: ExecutionId, token_kid: String, token_fingerprint: String, ) -> Self

Construct a PendingWaitpointInfo with the 7 required fields. Optional fields (activated_at, expires_at) default to None; use Self::with_activated_at / Self::with_expires_at to populate them. required_signal_names defaults to empty (wildcard condition); use Self::with_required_signal_names to set it.

Source

pub fn with_activated_at(self, activated_at: TimestampMs) -> Self

Source

pub fn with_expires_at(self, expires_at: TimestampMs) -> Self

Source

pub fn with_required_signal_names(self, names: Vec<String>) -> Self

Trait Implementations§

Source§

impl Clone for PendingWaitpointInfo

Source§

fn clone(&self) -> PendingWaitpointInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PendingWaitpointInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PendingWaitpointInfo

Source§

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 PendingWaitpointInfo

Source§

fn eq(&self, other: &PendingWaitpointInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PendingWaitpointInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for PendingWaitpointInfo

Source§

impl StructuralPartialEq for PendingWaitpointInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,