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
)]
#[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 ComputeNodeRequest {
    #[builder(custom(type = super::ComputableNode, convert = Box::new))]
    #[serde(rename = "node")]
    node: Box<super::ComputableNode>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "start")]
    start: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "end")]
    end: Box<super::super::super::super::api::Timestamp>,
    #[builder(custom(type = super::Context, convert = Box::new))]
    #[serde(rename = "context")]
    context: Box<super::Context>,
    #[builder(default, into)]
    #[serde(rename = "sourceRid", skip_serializing_if = "Option::is_none", default)]
    source_rid: Option<conjure_object::ResourceIdentifier>,
    #[builder(default, into)]
    #[serde(rename = "requestId", skip_serializing_if = "Option::is_none", default)]
    request_id: Option<conjure_object::Uuid>,
}
impl ComputeNodeRequest {
    #[inline]
    pub fn node(&self) -> &super::ComputableNode {
        &*self.node
    }
    /// The start of the time range (inclusive).
    #[inline]
    pub fn start(&self) -> &super::super::super::super::api::Timestamp {
        &*self.start
    }
    /// The end of the time range (inclusive).
    #[inline]
    pub fn end(&self) -> &super::super::super::super::api::Timestamp {
        &*self.end
    }
    #[inline]
    pub fn context(&self) -> &super::Context {
        &*self.context
    }
    /// Optional RID identifying the resource that initiated this query (e.g. workbook/notebook RID, checklist RID).
    /// Used for observability only — trusted as-is, no permission checks are performed on this value.
    #[inline]
    pub fn source_rid(&self) -> Option<&conjure_object::ResourceIdentifier> {
        self.source_rid.as_ref().map(|o| &*o)
    }
    /// Optional UUID to provide as a handle to selectively cancel the execution of this compute request.
    #[inline]
    pub fn request_id(&self) -> Option<conjure_object::Uuid> {
        self.request_id.as_ref().map(|o| *o)
    }
}