airbyte_client 0.41.0

Airbyte Client is an unofficial client library for the Airbyte API
Documentation
/*
 * Airbyte Configuration API
 *
 * Airbyte Configuration API [https://airbyte.io](https://airbyte.io).  This API is a collection of HTTP RPC-style methods. While it is not a REST API, those familiar with REST should find the conventions of this API recognizable.  Here are some conventions that this API follows: * All endpoints are http POST methods. * All endpoints accept data via `application/json` request bodies. The API does not accept any data via query params. * The naming convention for endpoints is: localhost:8000/{VERSION}/{METHOD_FAMILY}/{METHOD_NAME} e.g. `localhost:8000/v1/connections/create`. * For all `update` methods, the whole object must be passed in, even the fields that did not change.  Authentication (OSS): * When authenticating to the Configuration API, you must use Basic Authentication by setting the Authentication Header to Basic and base64 encoding the username and password (which are `airbyte` and `password` by default - so base64 encoding `airbyte:password` results in `YWlyYnl0ZTpwYXNzd29yZA==`). So the full header reads `'Authorization': \"Basic YWlyYnl0ZTpwYXNzd29yZA==\"`
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: contact@airbyte.io
 * Generated by: https://openapi-generator.tech
 */

/// AttemptFailureOrigin : Indicates where the error originated. If not set, the origin of error is not well known.

/// Indicates where the error originated. If not set, the origin of error is not well known.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AttemptFailureOrigin {
    #[serde(rename = "source")]
    Source,
    #[serde(rename = "destination")]
    Destination,
    #[serde(rename = "replication")]
    Replication,
    #[serde(rename = "persistence")]
    Persistence,
    #[serde(rename = "normalization")]
    Normalization,
    #[serde(rename = "dbt")]
    Dbt,
    #[serde(rename = "airbyte_platform")]
    AirbytePlatform,
    #[serde(rename = "unknown")]
    Unknown,
}

impl ToString for AttemptFailureOrigin {
    fn to_string(&self) -> String {
        match self {
            Self::Source => String::from("source"),
            Self::Destination => String::from("destination"),
            Self::Replication => String::from("replication"),
            Self::Persistence => String::from("persistence"),
            Self::Normalization => String::from("normalization"),
            Self::Dbt => String::from("dbt"),
            Self::AirbytePlatform => String::from("airbyte_platform"),
            Self::Unknown => String::from("unknown"),
        }
    }
}

impl Default for AttemptFailureOrigin {
    fn default() -> AttemptFailureOrigin {
        Self::Source
    }
}