pub enum ExtractMethod {
PlainText,
StripDoubleQuotes,
ExtractJsonIpField,
}
Available on crate feature
http-resolver
only.Expand description
Method used to extract an IP address from a http response
Variants§
PlainText
Parses the body with whitespace trimmed as the IP address.
StripDoubleQuotes
Parses the body with double quotes and whitespace trimmed as the IP address.
ExtractJsonIpField
Parses the value of the JSON property "ip"
within the body as the IP address.
Note this method does not validate the JSON.
Trait Implementations§
Source§impl Clone for ExtractMethod
impl Clone for ExtractMethod
Source§fn clone(&self) -> ExtractMethod
fn clone(&self) -> ExtractMethod
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 ExtractMethod
impl Debug for ExtractMethod
impl Copy for ExtractMethod
Auto Trait Implementations§
impl Freeze for ExtractMethod
impl RefUnwindSafe for ExtractMethod
impl Send for ExtractMethod
impl Sync for ExtractMethod
impl Unpin for ExtractMethod
impl UnwindSafe for ExtractMethod
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