pub struct HttpInvocationConfig {
pub url: String,
pub method: HttpMethod,
pub timeout_ms: Option<u64>,
pub headers: HashMap<String, String>,
pub auth: Option<HttpAuthConfig>,
}Expand description
Configuration for registering an HTTP-invoked function (Lambda, Cloudflare Workers, etc.) instead of a local handler.
Fields§
§url: String§method: HttpMethod§timeout_ms: Option<u64>§headers: HashMap<String, String>§auth: Option<HttpAuthConfig>Trait Implementations§
Source§impl Clone for HttpInvocationConfig
impl Clone for HttpInvocationConfig
Source§fn clone(&self) -> HttpInvocationConfig
fn clone(&self) -> HttpInvocationConfig
Returns a duplicate 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 HttpInvocationConfig
impl Debug for HttpInvocationConfig
Source§impl<'de> Deserialize<'de> for HttpInvocationConfig
impl<'de> Deserialize<'de> for HttpInvocationConfig
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 IntoFunctionHandler for HttpInvocationConfig
impl IntoFunctionHandler for HttpInvocationConfig
fn into_parts( self, message: &mut RegisterFunctionMessage, ) -> Option<RemoteFunctionHandler>
Auto Trait Implementations§
impl Freeze for HttpInvocationConfig
impl RefUnwindSafe for HttpInvocationConfig
impl Send for HttpInvocationConfig
impl Sync for HttpInvocationConfig
impl Unpin for HttpInvocationConfig
impl UnsafeUnpin for HttpInvocationConfig
impl UnwindSafe for HttpInvocationConfig
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