pub struct CompletionEvent(/* private fields */);Expand description
Compact reference-only CloudEvent: no application result copy and no platform data.
Event identity and bytes remain unchanged across retries and manual redelivery.
Implementations§
Source§impl CompletionEvent
impl CompletionEvent
pub fn new(value: Value) -> Result<Self>
pub fn value(&self) -> &Value
pub fn id(&self) -> &str
pub fn source(&self) -> &str
pub fn trace_context(&self) -> Option<TraceContext>
pub fn decode(bytes: &[u8]) -> Result<Self>
pub fn validate(&self) -> Result<()>
pub fn matches(&self, scope: &Scope, target: &CompletionTarget) -> bool
Trait Implementations§
Source§impl Clone for CompletionEvent
impl Clone for CompletionEvent
Source§impl Debug for CompletionEvent
impl Debug for CompletionEvent
Source§impl<'de> Deserialize<'de> for CompletionEvent
impl<'de> Deserialize<'de> for CompletionEvent
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 CompletionEvent
impl PartialEq for CompletionEvent
Source§impl Serialize for CompletionEvent
impl Serialize for CompletionEvent
impl StructuralPartialEq for CompletionEvent
Auto Trait Implementations§
impl Freeze for CompletionEvent
impl RefUnwindSafe for CompletionEvent
impl Send for CompletionEvent
impl Sync for CompletionEvent
impl Unpin for CompletionEvent
impl UnsafeUnpin for CompletionEvent
impl UnwindSafe for CompletionEvent
Blanket Implementations§
impl<T> ArtifactLease for T
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