pub struct Invocation {Show 13 fields
pub id: String,
pub function: String,
pub version: String,
pub mode: InvokeMode,
pub status: InvocationStatus,
pub idempotency_key: Option<String>,
pub attempts: u32,
pub lease_expires: Option<u64>,
pub request_b64: Option<String>,
pub request_content_type: Option<String>,
pub result: Option<InvocationResult>,
pub created: u64,
pub updated: u64,
}Expand description
A durable invocation record — the unit of the async queue and the receipt an
idempotency key replays. Keyed under keys::invocation.
Fields§
§id: StringOpaque invocation id (also the queue key suffix).
function: StringThe function invoked.
version: StringThe function version that ran (or will run) — pinned at enqueue so a later deploy can’t silently change an in-flight async call.
mode: InvokeModeDelivery mode.
status: InvocationStatusCurrent status.
idempotency_key: Option<String>The idempotency key that created it, if any.
attempts: u32Delivery attempts so far (async).
lease_expires: Option<u64>Lease expiry (unix seconds) while an async invocation is Running: the
drain that claims it stamps now + ceiling + margin, and the drain
treats a Running record whose lease has elapsed as reclaimable — so a
node that crashes mid-invocation never orphans the job. None once the
invocation settles (or while still Queued).
request_b64: Option<String>The request body the function receives, base64.
request_content_type: Option<String>The request content type forwarded to the function.
result: Option<InvocationResult>The captured result once complete.
created: u64Unix create time.
updated: u64Unix last-update time.
Implementations§
Source§impl Invocation
impl Invocation
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Whether the invocation reached a terminal state.
Trait Implementations§
Source§impl Clone for Invocation
impl Clone for Invocation
Source§fn clone(&self) -> Invocation
fn clone(&self) -> Invocation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Invocation
impl Debug for Invocation
Source§impl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Invocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Invocation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Invocation
Source§impl PartialEq for Invocation
impl PartialEq for Invocation
Source§impl Serialize for Invocation
impl Serialize for Invocation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Invocation
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnsafeUnpin for Invocation
impl UnwindSafe for Invocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.