nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Response with WHEP URL, ICE servers, and token for playback
#[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 GenerateWhepStreamResponse {
    #[builder(into)]
    #[serde(rename = "whepUrl")]
    whep_url: String,
    #[builder(default, list(item(type = super::IceServer)))]
    #[serde(rename = "iceServers", skip_serializing_if = "Vec::is_empty", default)]
    ice_servers: Vec<super::IceServer>,
    #[builder(into)]
    #[serde(rename = "token")]
    token: String,
}
impl GenerateWhepStreamResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(whep_url: impl Into<String>, token: impl Into<String>) -> Self {
        Self::builder().whep_url(whep_url).token(token).build()
    }
    #[inline]
    pub fn whep_url(&self) -> &str {
        &*self.whep_url
    }
    #[inline]
    pub fn ice_servers(&self) -> &[super::IceServer] {
        &*self.ice_servers
    }
    #[inline]
    pub fn token(&self) -> &str {
        &*self.token
    }
}