Struct krecik::checks::page::PageOptions [−][src]
pub struct PageOptions { pub headers: Option<Vec<String>>, pub post_data: Option<Vec<String>>, pub cookies: Option<Vec<String>>, pub follow_redirects: Option<bool>, pub method: Option<Method>, pub agent: Option<String>, pub timeout: Option<u64>, pub connection_timeout: Option<u64>, pub verbose: Option<bool>, pub ssl_verify_peer: Option<bool>, pub ssl_verify_host: Option<bool>, }
Expand description
Page options - passed to Curl
Fields
headers: Option<Vec<String>>
HTTP headers
post_data: Option<Vec<String>>
HTTP POST data (body)
HTTP cookies
follow_redirects: Option<bool>
HTTP follow 301/302 redirects
method: Option<Method>
HTTP method used
agent: Option<String>
HTTP agent name
timeout: Option<u64>
HTTP check timeout in seconds
connection_timeout: Option<u64>
HTTP connection timeout in seconds
verbose: Option<bool>
HTTP connection timeout in seconds
ssl_verify_peer: Option<bool>
TLS peer verification
ssl_verify_host: Option<bool>
TLS host verification
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Implement JSON serialization on .to_string():
Auto Trait Implementations
impl RefUnwindSafe for PageOptions
impl Send for PageOptions
impl Sync for PageOptions
impl Unpin for PageOptions
impl UnwindSafe for PageOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.