pub struct ClassifyRequest {
pub url: String,
pub status_code: u16,
pub headers: Option<HashMap<String, String>>,
pub body: Option<String>,
pub method: Option<String>,
}Expand description
Describes an HTTP response to classify.
Fields§
§url: StringFinal URL the response came from.
status_code: u16HTTP status code (100-599) of the response.
headers: Option<HashMap<String, String>>Response headers (case-insensitive).
body: Option<String>Response body as text. Binary bodies should be passed as empty/None.
method: Option<String>HTTP method the caller used. Defaults to GET server-side.
Trait Implementations§
Source§impl Clone for ClassifyRequest
impl Clone for ClassifyRequest
Source§fn clone(&self) -> ClassifyRequest
fn clone(&self) -> ClassifyRequest
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 ClassifyRequest
impl Debug for ClassifyRequest
Auto Trait Implementations§
impl Freeze for ClassifyRequest
impl RefUnwindSafe for ClassifyRequest
impl Send for ClassifyRequest
impl Sync for ClassifyRequest
impl Unpin for ClassifyRequest
impl UnsafeUnpin for ClassifyRequest
impl UnwindSafe for ClassifyRequest
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