#[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 Reaction {
#[serde(rename = "rid")]
rid: super::ReactionRid,
#[serde(rename = "userRid")]
user_rid: conjure_object::ResourceIdentifier,
#[serde(rename = "createdAt")]
created_at: conjure_object::DateTime<conjure_object::Utc>,
#[serde(rename = "type")]
type_: super::ReactionType,
}
impl Reaction {
#[inline]
pub fn rid(&self) -> &super::ReactionRid {
&self.rid
}
#[inline]
pub fn user_rid(&self) -> &conjure_object::ResourceIdentifier {
&self.user_rid
}
#[inline]
pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
self.created_at
}
#[inline]
pub fn type_(&self) -> &super::ReactionType {
&self.type_
}
}