pub struct NatsCloudEvent {
pub payload: Vec<u8>,
}Available on crate feature
nats only.Expand description
Helper struct containing text data bytes of JSON serialized Event
Implements AsRef so it can be directly passed to nats::Connection methods as payload.
Fields§
§payload: Vec<u8>Implementations§
Source§impl NatsCloudEvent
impl NatsCloudEvent
pub fn from_event(event: Event) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NatsCloudEvent
impl RefUnwindSafe for NatsCloudEvent
impl Send for NatsCloudEvent
impl Sync for NatsCloudEvent
impl Unpin for NatsCloudEvent
impl UnwindSafe for NatsCloudEvent
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