pub struct HttpResponseRule {
pub method: String,
pub path: String,
pub status: u16,
pub content_type: Option<String>,
pub body: String,
pub body_base64: bool,
}Fields§
§method: StringHTTP method token (case-sensitive per RFC 9110), or * to match any method.
path: StringPath pattern (leading /), supporting * wildcards.
status: u16§content_type: Option<String>§body: String§body_base64: boolImplementations§
Trait Implementations§
Source§impl Clone for HttpResponseRule
impl Clone for HttpResponseRule
Source§impl Debug for HttpResponseRule
impl Debug for HttpResponseRule
Source§impl<'de> Deserialize<'de> for HttpResponseRule
impl<'de> Deserialize<'de> for HttpResponseRule
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 for HttpResponseRule
impl PartialEq for HttpResponseRule
Source§impl Serialize for HttpResponseRule
impl Serialize for HttpResponseRule
impl StructuralPartialEq for HttpResponseRule
Auto Trait Implementations§
impl Forget for HttpResponseRule
impl Freeze for HttpResponseRule
impl Move for HttpResponseRule
impl RefUnwindSafe for HttpResponseRule
impl Send for HttpResponseRule
impl Sync for HttpResponseRule
impl Unpin for HttpResponseRule
impl UnsafeUnpin for HttpResponseRule
impl UnwindSafe for HttpResponseRule
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