#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SingleTabV1 {
    #[builder(into)]
    #[serde(rename = "title")]
    title: String,
    #[builder(custom(type = super::Panel, convert = Box::new))]
    #[serde(rename = "panel")]
    panel: Box<super::Panel>,
}
impl SingleTabV1 {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(title: impl Into<String>, panel: super::Panel) -> Self {
        Self::builder().title(title).panel(panel).build()
    }
    #[inline]
    pub fn title(&self) -> &str {
        &*self.title
    }
    #[inline]
    pub fn panel(&self) -> &super::Panel {
        &*self.panel
    }
}
