nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 CommentParentResource {
    #[serde(rename = "resourceType")]
    resource_type: super::ResourceType,
    #[serde(rename = "resourceRid")]
    resource_rid: conjure_object::ResourceIdentifier,
}
impl CommentParentResource {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        resource_type: super::ResourceType,
        resource_rid: conjure_object::ResourceIdentifier,
    ) -> Self {
        Self::builder().resource_type(resource_type).resource_rid(resource_rid).build()
    }
    /// The type of resource that the comment is associated with
    #[inline]
    pub fn resource_type(&self) -> &super::ResourceType {
        &self.resource_type
    }
    /// The resource identifier for the resource that the comment is associated with. For example, a run or a workbook.
    #[inline]
    pub fn resource_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.resource_rid
    }
}