/// Configuration for showing staleness of values while streaming
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ValueTableStalenessConfig {
    #[builder(default, into)]
    #[serde(rename = "hideStaleness", skip_serializing_if = "Option::is_none", default)]
    hide_staleness: Option<bool>,
}
impl ValueTableStalenessConfig {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// If true, will not show any indication of staleness. Defaults to false
    #[inline]
    pub fn hide_staleness(&self) -> Option<bool> {
        self.hide_staleness.as_ref().map(|o| *o)
    }
}
