#[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 ComparisonRunGroup {
    #[serde(rename = "uuid")]
    uuid: conjure_object::Uuid,
    #[builder(into)]
    #[serde(rename = "name")]
    name: String,
    #[builder(custom(type = super::Offset, convert = Box::new))]
    #[serde(rename = "offset")]
    offset: Box<super::Offset>,
    #[builder(custom(type = super::OffsetAnchor, convert = Box::new))]
    #[serde(rename = "offsetAnchor")]
    offset_anchor: Box<super::OffsetAnchor>,
    #[builder(default, list(item(type = super::ComparisonRun)))]
    #[serde(rename = "runs", skip_serializing_if = "Vec::is_empty", default)]
    runs: Vec<super::ComparisonRun>,
    #[builder(default, into)]
    #[serde(rename = "color", skip_serializing_if = "Option::is_none", default)]
    color: Option<super::super::super::api::HexColor>,
}
impl ComparisonRunGroup {
    #[inline]
    pub fn uuid(&self) -> conjure_object::Uuid {
        self.uuid
    }
    #[inline]
    pub fn name(&self) -> &str {
        &*self.name
    }
    #[inline]
    pub fn offset(&self) -> &super::Offset {
        &*self.offset
    }
    #[inline]
    pub fn offset_anchor(&self) -> &super::OffsetAnchor {
        &*self.offset_anchor
    }
    #[inline]
    pub fn runs(&self) -> &[super::ComparisonRun] {
        &*self.runs
    }
    #[inline]
    pub fn color(&self) -> Option<&super::super::super::api::HexColor> {
        self.color.as_ref().map(|o| &*o)
    }
}
