pub struct HandlerArgs {
pub url: LitStr,
pub method: HttpMethod,
pub content_type: Option<ContentType>,
pub headers: Punctuated<LitStr, Comma>,
pub interceptor: Option<Path>,
pub retry: Option<RetryConfig>,
pub proxy: Option<ProxyConfig>,
}Expand description
HTTP 处理器参数配置
Fields§
§url: LitStr§method: HttpMethod§content_type: Option<ContentType>§headers: Punctuated<LitStr, Comma>§interceptor: Option<Path>§retry: Option<RetryConfig>§proxy: Option<ProxyConfig>Trait Implementations§
Source§impl Parse for HandlerArgs
impl Parse for HandlerArgs
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for HandlerArgs
impl RefUnwindSafe for HandlerArgs
impl !Send for HandlerArgs
impl !Sync for HandlerArgs
impl Unpin for HandlerArgs
impl UnwindSafe for HandlerArgs
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