Struct aws_sdk_ivs::types::StreamSession
source · #[non_exhaustive]pub struct StreamSession {
pub stream_id: Option<String>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub channel: Option<Channel>,
pub ingest_configuration: Option<IngestConfiguration>,
pub recording_configuration: Option<RecordingConfiguration>,
pub truncated_events: Option<Vec<StreamEvent>>,
}
Expand description
Object that captures the Amazon IVS configuration that the customer provisioned, the ingest configurations that the broadcaster used, and the most recent Amazon IVS stream events it encountered.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.stream_id: Option<String>
Unique identifier for a live or previously live stream in the specified channel.
start_time: Option<DateTime>
Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string.
end_time: Option<DateTime>
Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a string. For live streams, this is NULL
.
channel: Option<Channel>
The properties of the channel at the time of going live.
ingest_configuration: Option<IngestConfiguration>
The properties of the incoming RTMP stream for the stream.
recording_configuration: Option<RecordingConfiguration>
The properties of recording the live stream.
truncated_events: Option<Vec<StreamEvent>>
List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
Implementations§
source§impl StreamSession
impl StreamSession
sourcepub fn stream_id(&self) -> Option<&str>
pub fn stream_id(&self) -> Option<&str>
Unique identifier for a live or previously live stream in the specified channel.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a string. For live streams, this is NULL
.
sourcepub fn channel(&self) -> Option<&Channel>
pub fn channel(&self) -> Option<&Channel>
The properties of the channel at the time of going live.
sourcepub fn ingest_configuration(&self) -> Option<&IngestConfiguration>
pub fn ingest_configuration(&self) -> Option<&IngestConfiguration>
The properties of the incoming RTMP stream for the stream.
sourcepub fn recording_configuration(&self) -> Option<&RecordingConfiguration>
pub fn recording_configuration(&self) -> Option<&RecordingConfiguration>
The properties of recording the live stream.
sourcepub fn truncated_events(&self) -> &[StreamEvent]
pub fn truncated_events(&self) -> &[StreamEvent]
List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .truncated_events.is_none()
.
source§impl StreamSession
impl StreamSession
sourcepub fn builder() -> StreamSessionBuilder
pub fn builder() -> StreamSessionBuilder
Creates a new builder-style object to manufacture StreamSession
.
Trait Implementations§
source§impl Clone for StreamSession
impl Clone for StreamSession
source§fn clone(&self) -> StreamSession
fn clone(&self) -> StreamSession
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StreamSession
impl Debug for StreamSession
source§impl PartialEq for StreamSession
impl PartialEq for StreamSession
source§fn eq(&self, other: &StreamSession) -> bool
fn eq(&self, other: &StreamSession) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamSession
Auto Trait Implementations§
impl Freeze for StreamSession
impl RefUnwindSafe for StreamSession
impl Send for StreamSession
impl Sync for StreamSession
impl Unpin for StreamSession
impl UnwindSafe for StreamSession
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more