nominal-api-conjure 0.1336.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Aligns each anchored portion of the input dataset so its selected anchor becomes timestamp zero while
/// preserving grouping tags. Currently only run boundary anchors are supported, and the input must resolve
/// exclusively to run-backed raw branches; derived channels are not supported.
#[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 AnchorAlignedDataset {
    #[builder(custom(type = super::Dataset, convert = Box::new))]
    #[serde(rename = "input")]
    input: Box<super::Dataset>,
    #[builder(custom(type = super::DatasetAnchor, convert = Box::new))]
    #[serde(rename = "anchor")]
    anchor: Box<super::DatasetAnchor>,
}
impl AnchorAlignedDataset {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(input: super::Dataset, anchor: super::DatasetAnchor) -> Self {
        Self::builder().input(input).anchor(anchor).build()
    }
    /// The dataset to align.
    #[inline]
    pub fn input(&self) -> &super::Dataset {
        &*self.input
    }
    /// Selects the timestamp that becomes timestamp zero for each anchored portion of the input.
    #[inline]
    pub fn anchor(&self) -> &super::DatasetAnchor {
        &*self.anchor
    }
}