#[derive(
    Debug,
    Clone,
    conjure_object::serde::Deserialize,
    conjure_object::serde::Serialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde", transparent)]
pub struct ApiKeyRid(pub conjure_object::ResourceIdentifier);
impl std::fmt::Display for ApiKeyRid {
    fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        std::fmt::Display::fmt(&self.0, fmt)
    }
}
impl conjure_object::Plain for ApiKeyRid {
    fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        conjure_object::Plain::fmt(&self.0, fmt)
    }
}
impl conjure_object::FromPlain for ApiKeyRid {
    type Err = <conjure_object::ResourceIdentifier as conjure_object::FromPlain>::Err;
    #[inline]
    fn from_plain(s: &str) -> Result<ApiKeyRid, Self::Err> {
        conjure_object::FromPlain::from_plain(s).map(ApiKeyRid)
    }
}
impl std::convert::From<conjure_object::ResourceIdentifier> for ApiKeyRid {
    #[inline]
    fn from(v: conjure_object::ResourceIdentifier) -> Self {
        ApiKeyRid(std::convert::From::from(v))
    }
}
impl std::ops::Deref for ApiKeyRid {
    type Target = conjure_object::ResourceIdentifier;
    #[inline]
    fn deref(&self) -> &conjure_object::ResourceIdentifier {
        &self.0
    }
}
impl std::ops::DerefMut for ApiKeyRid {
    #[inline]
    fn deref_mut(&mut self) -> &mut conjure_object::ResourceIdentifier {
        &mut self.0
    }
}
impl std::convert::AsRef<conjure_object::ResourceIdentifier> for ApiKeyRid {
    #[inline]
    fn as_ref(&self) -> &conjure_object::ResourceIdentifier {
        &self.0
    }
}
