pub struct Invocation {
pub id: String,
pub function: String,
pub version: String,
pub mode: InvokeMode,
pub status: InvocationStatus,
pub idempotency_key: Option<String>,
pub attempts: u32,
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).
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
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 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>,
Deserialize this value from the given Serde deserializer. Read more
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,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.