[−][src]Struct krecik::checks::generic::GenCheck
NOTE: Pigeon (previous implementation) supported list of checks per file. TravMole will require each JSON to be separate file. Decission is justified by lack of JSON comment ability, and other file-specific and sync troubles, but also for future editing/ enable/ disable abilities that would be much more complicated with support of several checks per file. Generic Check structure:
Fields
domains: Option<Domains>
Domains to check
pages: Option<Pages>
Pages to check
alert_webhook: Option<String>
Slack Webhook
alert_channel: Option<String>
Slack alert channel
Trait Implementations
impl Checks<GenCheck> for GenCheck
[src]
pub fn load(name: &str) -> Result<GenCheck, Error>
[src]
pub fn execute(&self, execution_name: &str) -> History
[src]
pub fn check_ssl_expire(
domain_name: &str,
domain_expectation: DomainExpectation
) -> Story
[src]
domain_name: &str,
domain_expectation: DomainExpectation
) -> Story
pub fn check_domains(domains: Option<Domains>) -> History
[src]
pub fn find_code_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]
page_expectations: &[PageExpectation]
) -> &PageExpectation
pub fn find_content_validations(
page_expectations: &[PageExpectation]
) -> PageExpectations
[src]
page_expectations: &[PageExpectation]
) -> PageExpectations
pub fn find_content_length_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]
page_expectations: &[PageExpectation]
) -> &PageExpectation
pub fn find_address_validation(
page_expectations: &[PageExpectation]
) -> &PageExpectation
[src]
page_expectations: &[PageExpectation]
) -> &PageExpectation
pub fn list_of_headers(headers: Option<Vec<String>>) -> List
[src]
pub fn load_handler_for(page_check: &Page, multi: &Multi) -> CurlHandler
[src]
pub fn process_page_handler(
page_check: &Page,
handler: CurlHandler,
multi: &Multi
) -> History
[src]
page_check: &Page,
handler: CurlHandler,
multi: &Multi
) -> History
pub fn produce_curl_response_error(err: CurlError) -> Error
[src]
pub fn handle_page_content_expectations(
url: &str,
raw_page_content: &str,
expected_contents: &[PageExpectation]
) -> Stories
[src]
url: &str,
raw_page_content: &str,
expected_contents: &[PageExpectation]
) -> Stories
pub fn handle_page_length_expectation(
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation
) -> Story
[src]
url: &str,
raw_page_content: &str,
expected_content_length: &PageExpectation
) -> Story
pub fn handle_page_address_expectation(
url: &str,
address: &str,
expected_address: &PageExpectation
) -> Story
[src]
url: &str,
address: &str,
expected_address: &PageExpectation
) -> Story
pub fn handle_page_httpcode_expectation(
url: &str,
connect_oserror: Option<Error>,
response_code: Result<u32, Error>,
expected_code: &PageExpectation
) -> Story
[src]
url: &str,
connect_oserror: Option<Error>,
response_code: Result<u32, Error>,
expected_code: &PageExpectation
) -> Story
pub fn check_pages(pages: Option<Pages>) -> History
[src]
impl Clone for GenCheck
[src]
impl Debug for GenCheck
[src]
impl Default for GenCheck
[src]
impl<'de> Deserialize<'de> for GenCheck
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for GenCheck
[src]
Auto Trait Implementations
impl RefUnwindSafe for GenCheck
impl Send for GenCheck
impl Sync for GenCheck
impl Unpin for GenCheck
impl UnwindSafe for GenCheck
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Err = <U as TryFrom<T>>::Err
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,