pub struct CloudEvent(/* private fields */);Expand description
Owns the original logical JSON event without rewriting user-owned data.
This invocation profile uses CloudEvents 1.0.2 context names/types, requires JSON data and Ledgence execution identifiers, and accepts W3C traceparent version 00. Optional tracestate requires traceparent and is limited to 512 ASCII bytes and 32 members. Invalid metadata is rejected, never repaired. Optional context attributes must be omitted rather than encoded as null.
Implementations§
Source§impl CloudEvent
impl CloudEvent
pub fn new(value: Value) -> Result<Self>
pub fn value(&self) -> &Value
pub fn into_value(self) -> Value
pub fn id(&self) -> &str
pub fn attempt_id(&self) -> &str
pub fn task_id(&self) -> &str
pub fn tenant_id(&self) -> &str
pub fn namespace(&self) -> &str
pub fn traceparent(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for CloudEvent
impl Clone for CloudEvent
Source§impl Debug for CloudEvent
impl Debug for CloudEvent
Source§impl<'de> Deserialize<'de> for CloudEvent
impl<'de> Deserialize<'de> for CloudEvent
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CloudEvent> for InvocationIdentity
impl From<&CloudEvent> for InvocationIdentity
Source§fn from(event: &CloudEvent) -> Self
fn from(event: &CloudEvent) -> Self
Converts to this type from the input type.
Source§impl From<CloudEvent> for RuntimeInvocation
impl From<CloudEvent> for RuntimeInvocation
Source§fn from(event: CloudEvent) -> Self
fn from(event: CloudEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CloudEvent
impl PartialEq for CloudEvent
Source§impl Serialize for CloudEvent
impl Serialize for CloudEvent
impl StructuralPartialEq for CloudEvent
Auto Trait Implementations§
impl Freeze for CloudEvent
impl RefUnwindSafe for CloudEvent
impl Send for CloudEvent
impl Sync for CloudEvent
impl Unpin for CloudEvent
impl UnsafeUnpin for CloudEvent
impl UnwindSafe for CloudEvent
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