Trait cloudevents::binding::actix::HttpResponseBuilderExt
source · pub trait HttpResponseBuilderExt: Sealed {
fn event(self, event: Event) -> Result<HttpResponse, Error>;
}Available on crate feature
actix only.Expand description
Extension Trait for HttpResponseBuilder which acts as a wrapper for the function event_to_response().
This trait is sealed and cannot be implemented for types outside of this crate.
Required Methods
sourcefn event(self, event: Event) -> Result<HttpResponse, Error>
fn event(self, event: Event) -> Result<HttpResponse, Error>
Fill this HttpResponseBuilder with an Event.