nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith,
    Copy
)]
#[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 ConnectionPlottingConfiguration {
    #[builder(default, into)]
    #[serde(
        rename = "maxUndecimatedPointsPerPage",
        skip_serializing_if = "Option::is_none",
        default
    )]
    max_undecimated_points_per_page: Option<i32>,
    #[builder(default, into)]
    #[serde(
        rename = "maxUnboundedRange",
        skip_serializing_if = "Option::is_none",
        default
    )]
    max_unbounded_range: Option<conjure_object::SafeLong>,
    #[builder(default, into)]
    #[serde(
        rename = "maxUndecimatedPageReadsPerSecond",
        skip_serializing_if = "Option::is_none",
        default
    )]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_undecimated_page_reads_per_second: Option<f64>,
    #[builder(default, into)]
    #[serde(
        rename = "maxPermitsPerSecond",
        skip_serializing_if = "Option::is_none",
        default
    )]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    max_permits_per_second: Option<f64>,
    #[builder(default, into)]
    #[serde(rename = "maxConnections", skip_serializing_if = "Option::is_none", default)]
    max_connections: Option<i32>,
}
impl ConnectionPlottingConfiguration {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The maximum number of points to return per page for undecimated queries
    #[inline]
    pub fn max_undecimated_points_per_page(&self) -> Option<i32> {
        self.max_undecimated_points_per_page.as_ref().map(|o| *o)
    }
    /// The maximum range (in nanoseconds) for unbounded queries
    #[inline]
    pub fn max_unbounded_range(&self) -> Option<conjure_object::SafeLong> {
        self.max_unbounded_range.as_ref().map(|o| *o)
    }
    /// The maximum number of page reads per second for undecimated queries
    #[inline]
    pub fn max_undecimated_page_reads_per_second(&self) -> Option<f64> {
        self.max_undecimated_page_reads_per_second.as_ref().map(|o| *o)
    }
    /// The maximum number of permits per second for queries
    #[inline]
    pub fn max_permits_per_second(&self) -> Option<f64> {
        self.max_permits_per_second.as_ref().map(|o| *o)
    }
    /// The maximum number of connections to the database
    #[inline]
    pub fn max_connections(&self) -> Option<i32> {
        self.max_connections.as_ref().map(|o| *o)
    }
}