nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Defines the append results from the websocket.
#[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 AppendOnlyConfig {
    #[serde(rename = "decimateResults")]
    decimate_results: bool,
}
impl AppendOnlyConfig {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(decimate_results: bool) -> Self {
        Self::builder().decimate_results(decimate_results).build()
    }
    /// Specifies whether the returned results should be decimated.
    /// If this is false, the client may receive a `SubscriptionCreationError` if the data rate is too high
    /// and responses must be decimated.
    #[inline]
    pub fn decimate_results(&self) -> bool {
        self.decimate_results
    }
}