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 ResolveStreamingSessionRequest {
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::StreamingSessionSource>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "source", skip_serializing_if = "Option::is_none", default)]
    source: Option<Box<super::StreamingSessionSource>>,
}
impl ResolveStreamingSessionRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The source attribution for this streaming session. Each unique source gets
    /// its own in-progress session per dataset. If absent, the session is unattributed.
    #[inline]
    pub fn source(&self) -> Option<&super::StreamingSessionSource> {
        self.source.as_ref().map(|o| &**o)
    }
}