/// A socket timeout was encountered while trying to fetch data from the external database.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ExternalDatabaseSocketTimeout {
    #[builder(into)]
    #[serde(rename = "type")]
    type_: String,
}
impl ExternalDatabaseSocketTimeout {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(type_: impl Into<String>) -> Self {
        Self::builder().type_(type_).build()
    }
    #[inline]
    pub fn type_(&self) -> &str {
        &*self.type_
    }
}
impl conjure_error::ErrorType for ExternalDatabaseSocketTimeout {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::CustomServer
    }
    #[inline]
    fn name() -> &'static str {
        "ExternalDatabase:ExternalDatabaseSocketTimeout"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["type"]
    }
}
