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