steel-rs 0.1.3

Steel API client
Documentation
//! Steel API client

pub mod client;
pub mod pagination;
pub mod resources;
pub mod types;

pub use client::{ApiError, Error, Steel};
pub use pagination::Page;
pub use types::*;

#[cfg(test)]
mod tests {
    #[allow(unused_imports)]
    use crate::*;

    #[test]
    fn builds_client() {
        let _ = Steel::new("test-key");
    }

    #[test]
    fn enums_accept_unknown_values() {
        let _: ProfileStatus =
            serde_json::from_str("\"zz_unknown_zz\"").expect("ProfileStatus forward-compat");
        let _: ScrapeRequestFormatItem = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("ScrapeRequestFormatItem forward-compat");
        let _: SessionCostResponseCurrency = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("SessionCostResponseCurrency forward-compat");
        let _: SessionCostResponseUnit = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("SessionCostResponseUnit forward-compat");
        let _: SessionResponseProxySource = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("SessionResponseProxySource forward-compat");
        let _: SessionResponseRegion = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("SessionResponseRegion forward-compat");
        let _: SessionResponseReleaseReason = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("SessionResponseReleaseReason forward-compat");
        let _: SessionResponseStatus = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("SessionResponseStatus forward-compat");
        let _: ComputerActionRequestClickMouseButton = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("ComputerActionRequestClickMouseButton forward-compat");
        let _: ComputerActionRequestClickMouseClickType = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("ComputerActionRequestClickMouseClickType forward-compat");
        let _: CreateSessionRequestDeviceConfigDevice = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("CreateSessionRequestDeviceConfigDevice forward-compat");
        let _: CreateSessionRequestSessionContextCookiesItemPriority =
            serde_json::from_str("\"zz_unknown_zz\"")
                .expect("CreateSessionRequestSessionContextCookiesItemPriority forward-compat");
        let _: CreateSessionRequestSessionContextCookiesItemSameSite =
            serde_json::from_str("\"zz_unknown_zz\"")
                .expect("CreateSessionRequestSessionContextCookiesItemSameSite forward-compat");
        let _: CreateSessionRequestSessionContextCookiesItemSourceScheme =
            serde_json::from_str("\"zz_unknown_zz\"")
                .expect("CreateSessionRequestSessionContextCookiesItemSourceScheme forward-compat");
        let _: CreateSessionRequestUseProxyGeolocationCity =
            serde_json::from_str("\"zz_unknown_zz\"")
                .expect("CreateSessionRequestUseProxyGeolocationCity forward-compat");
        let _: CreateSessionRequestUseProxyGeolocationCountry =
            serde_json::from_str("\"zz_unknown_zz\"")
                .expect("CreateSessionRequestUseProxyGeolocationCountry forward-compat");
        let _: CreateSessionRequestUseProxyGeolocationState =
            serde_json::from_str("\"zz_unknown_zz\"")
                .expect("CreateSessionRequestUseProxyGeolocationState forward-compat");
        let _: SessionCostResponseUsageBrowserUnit = serde_json::from_str("\"zz_unknown_zz\"")
            .expect("SessionCostResponseUsageBrowserUnit forward-compat");
    }
}