Enum public_ip::http::ExtractMethod [−][src]
pub enum ExtractMethod {
PlainText,
StripDoubleQuotes,
ExtractJsonIpField,
}
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
Auto Trait Implementations
impl RefUnwindSafe for ExtractMethod
impl Send for ExtractMethod
impl Sync for ExtractMethod
impl Unpin for ExtractMethod
impl UnwindSafe for ExtractMethod
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more