nominal-api-conjure 0.1343.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// An offset that aligns each anchored portion of a dataset so the selected anchor becomes timestamp zero.
#[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 AnchorAlignment {
    #[builder(
        custom(
            type = super::super::super::compute::api::DatasetAnchor,
            convert = Box::new
        )
    )]
    #[serde(rename = "anchor")]
    anchor: Box<super::super::super::compute::api::DatasetAnchor>,
}
impl AnchorAlignment {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(anchor: super::super::super::compute::api::DatasetAnchor) -> Self {
        Self::builder().anchor(anchor).build()
    }
    #[inline]
    pub fn anchor(&self) -> &super::super::super::compute::api::DatasetAnchor {
        &*self.anchor
    }
}