#[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 EndStreamResponse {
#[builder(into)]
#[serde(rename = "streamId")]
stream_id: String,
#[builder(
custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
)]
#[serde(rename = "endedAt")]
ended_at: Box<super::super::super::super::api::Timestamp>,
}
impl EndStreamResponse {
#[inline]
pub fn new(
stream_id: impl Into<String>,
ended_at: super::super::super::super::api::Timestamp,
) -> Self {
Self::builder().stream_id(stream_id).ended_at(ended_at).build()
}
#[inline]
pub fn stream_id(&self) -> &str {
&*self.stream_id
}
#[inline]
pub fn ended_at(&self) -> &super::super::super::super::api::Timestamp {
&*self.ended_at
}
}