/// Color each point using per-point RGB attribute values.
#[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 SpatialAppearanceColoringAttributeRgb {
    #[builder(into)]
    #[serde(rename = "attribute")]
    attribute: String,
}
impl SpatialAppearanceColoringAttributeRgb {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(attribute: impl Into<String>) -> Self {
        Self::builder().attribute(attribute).build()
    }
    /// Name of the per-point attribute that encodes color (e.g. "rgb").
    #[inline]
    pub fn attribute(&self) -> &str {
        &*self.attribute
    }
}
