#[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 CommitConflict {
    #[serde(rename = "resourceRid")]
    resource_rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "trueLatestCommit")]
    true_latest_commit: super::super::super::super::super::objects::scout::versioning::api::CommitId,
    #[serde(rename = "providedLatestCommit")]
    provided_latest_commit: super::super::super::super::super::objects::scout::versioning::api::CommitId,
    #[serde(rename = "branchName")]
    branch_name: super::super::super::super::super::objects::scout::versioning::api::BranchName,
}
impl CommitConflict {
    #[inline]
    pub fn resource_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.resource_rid
    }
    #[inline]
    pub fn true_latest_commit(
        &self,
    ) -> &super::super::super::super::super::objects::scout::versioning::api::CommitId {
        &self.true_latest_commit
    }
    #[inline]
    pub fn provided_latest_commit(
        &self,
    ) -> &super::super::super::super::super::objects::scout::versioning::api::CommitId {
        &self.provided_latest_commit
    }
    #[inline]
    pub fn branch_name(
        &self,
    ) -> &super::super::super::super::super::objects::scout::versioning::api::BranchName {
        &self.branch_name
    }
}
impl conjure_error::ErrorType for CommitConflict {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::Conflict
    }
    #[inline]
    fn name() -> &'static str {
        "Scout:CommitConflict"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["providedLatestCommit", "resourceRid", "trueLatestCommit"]
    }
}
