#[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 Branch {
    #[serde(rename = "rid")]
    rid: super::BranchRid,
    #[serde(rename = "name")]
    name: super::BranchName,
    #[serde(rename = "resourceRid")]
    resource_rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "commit")]
    commit: super::CommitId,
    #[serde(rename = "createdBy")]
    created_by: super::super::super::rids::api::UserRid,
    #[serde(rename = "createdAt")]
    created_at: conjure_object::DateTime<conjure_object::Utc>,
    #[serde(rename = "updatedAt")]
    updated_at: conjure_object::DateTime<conjure_object::Utc>,
}
impl Branch {
    #[inline]
    pub fn rid(&self) -> &super::BranchRid {
        &self.rid
    }
    #[inline]
    pub fn name(&self) -> &super::BranchName {
        &self.name
    }
    #[inline]
    pub fn resource_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.resource_rid
    }
    #[inline]
    pub fn commit(&self) -> &super::CommitId {
        &self.commit
    }
    #[inline]
    pub fn created_by(&self) -> &super::super::super::rids::api::UserRid {
        &self.created_by
    }
    #[inline]
    pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.created_at
    }
    #[inline]
    pub fn updated_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.updated_at
    }
}
