nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Metadata for a single video stream session.
#[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 VideoStream {
    #[builder(into)]
    #[serde(rename = "streamId")]
    stream_id: String,
    #[serde(rename = "videoRid")]
    video_rid: super::super::super::super::api::rids::VideoRid,
    #[builder(into)]
    #[serde(rename = "streamStatus")]
    stream_status: String,
    #[builder(default, into)]
    #[serde(rename = "start", skip_serializing_if = "Option::is_none", default)]
    start: Option<conjure_object::DateTime<conjure_object::Utc>>,
    #[builder(default, into)]
    #[serde(rename = "end", skip_serializing_if = "Option::is_none", default)]
    end: Option<conjure_object::DateTime<conjure_object::Utc>>,
    #[serde(rename = "createdAt")]
    created_at: conjure_object::DateTime<conjure_object::Utc>,
    #[serde(rename = "updatedAt")]
    updated_at: conjure_object::DateTime<conjure_object::Utc>,
}
impl VideoStream {
    #[inline]
    pub fn stream_id(&self) -> &str {
        &*self.stream_id
    }
    #[inline]
    pub fn video_rid(&self) -> &super::super::super::super::api::rids::VideoRid {
        &self.video_rid
    }
    #[inline]
    pub fn stream_status(&self) -> &str {
        &*self.stream_status
    }
    #[inline]
    pub fn start(&self) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
        self.start.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn end(&self) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
        self.end.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.created_at
    }
    #[inline]
    pub fn updated_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.updated_at
    }
}