Struct wick_config::v1::HttpTrigger
source · pub struct HttpTrigger {
pub resource: String,
pub routers: Vec<HttpRouter>,
}Expand description
An HTTP server that delegates to HTTP routers on every request.
Fields§
§resource: StringThe TcpPort resource to listen on for connections.
routers: Vec<HttpRouter>The router to handle incoming requests
Trait Implementations§
source§impl Clone for HttpTrigger
impl Clone for HttpTrigger
source§fn clone(&self) -> HttpTrigger
fn clone(&self) -> HttpTrigger
Returns a copy of the value. Read more
1.0.0 · 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 HttpTrigger
impl Debug for HttpTrigger
source§impl<'de> Deserialize<'de> for HttpTrigger
impl<'de> Deserialize<'de> for HttpTrigger
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<HttpTrigger> for HttpTrigger
impl PartialEq<HttpTrigger> for HttpTrigger
source§fn eq(&self, other: &HttpTrigger) -> bool
fn eq(&self, other: &HttpTrigger) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for HttpTrigger
impl Serialize for HttpTrigger
source§impl TryFrom<HttpTriggerConfig> for HttpTrigger
impl TryFrom<HttpTriggerConfig> for HttpTrigger
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for HttpTrigger
Auto Trait Implementations§
impl RefUnwindSafe for HttpTrigger
impl Send for HttpTrigger
impl Sync for HttpTrigger
impl Unpin for HttpTrigger
impl UnwindSafe for HttpTrigger
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