#[non_exhaustive]pub struct Input {Show 21 fields
pub arn: Option<String>,
pub attached_channels: Option<Vec<String>>,
pub destinations: Option<Vec<InputDestination>>,
pub id: Option<String>,
pub input_class: Option<InputClass>,
pub input_devices: Option<Vec<InputDeviceSettings>>,
pub input_partner_ids: Option<Vec<String>>,
pub input_source_type: Option<InputSourceType>,
pub media_connect_flows: Option<Vec<MediaConnectFlow>>,
pub name: Option<String>,
pub role_arn: Option<String>,
pub security_groups: Option<Vec<String>>,
pub sources: Option<Vec<InputSource>>,
pub state: Option<InputState>,
pub tags: Option<HashMap<String, String>>,
pub type: Option<InputType>,
pub srt_settings: Option<SrtSettings>,
pub input_network_location: Option<InputNetworkLocation>,
pub multicast_settings: Option<MulticastSettings>,
pub smpte2110_receiver_group_settings: Option<Smpte2110ReceiverGroupSettings>,
pub sdi_sources: Option<Vec<String>>,
}
Expand description
Placeholder documentation for Input
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.arn: Option<String>
The Unique ARN of the input (generated, immutable).
attached_channels: Option<Vec<String>>
A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
destinations: Option<Vec<InputDestination>>
A list of the destinations of the input (PUSH-type).
id: Option<String>
The generated ID of the input (unique for user account, immutable).
input_class: Option<InputClass>
STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input.
input_devices: Option<Vec<InputDeviceSettings>>
Settings for the input devices.
input_partner_ids: Option<Vec<String>>
A list of IDs for all Inputs which are partners of this one.
input_source_type: Option<InputSourceType>
Certain pull input sources can be dynamic, meaning that they can have their URL’s dynamically changes during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs.
media_connect_flows: Option<Vec<MediaConnectFlow>>
A list of MediaConnect Flows for this input.
name: Option<String>
The user-assigned name (This is a mutable value).
role_arn: Option<String>
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
security_groups: Option<Vec<String>>
A list of IDs for all the Input Security Groups attached to the input.
sources: Option<Vec<InputSource>>
A list of the sources of the input (PULL-type).
state: Option<InputState>
Placeholder documentation for InputState
A collection of key-value pairs.
type: Option<InputType>
The different types of inputs that AWS Elemental MediaLive supports.
srt_settings: Option<SrtSettings>
The settings associated with an SRT input.
input_network_location: Option<InputNetworkLocation>
The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
multicast_settings: Option<MulticastSettings>
Multicast Input settings.
smpte2110_receiver_group_settings: Option<Smpte2110ReceiverGroupSettings>
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
sdi_sources: Option<Vec<String>>
SDI Sources for this Input.
Implementations§
Source§impl Input
impl Input
Sourcepub fn attached_channels(&self) -> &[String]
pub fn attached_channels(&self) -> &[String]
A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attached_channels.is_none()
.
Sourcepub fn destinations(&self) -> &[InputDestination]
pub fn destinations(&self) -> &[InputDestination]
A list of the destinations of the input (PUSH-type).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .destinations.is_none()
.
Sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The generated ID of the input (unique for user account, immutable).
Sourcepub fn input_class(&self) -> Option<&InputClass>
pub fn input_class(&self) -> Option<&InputClass>
STANDARD - MediaLive expects two sources to be connected to this input. If the channel is also STANDARD, both sources will be ingested. If the channel is SINGLE_PIPELINE, only the first source will be ingested; the second source will always be ignored, even if the first source fails. SINGLE_PIPELINE - You can connect only one source to this input. If the ChannelClass is also SINGLE_PIPELINE, this value is valid. If the ChannelClass is STANDARD, this value is not valid because the channel requires two sources in the input.
Sourcepub fn input_devices(&self) -> &[InputDeviceSettings]
pub fn input_devices(&self) -> &[InputDeviceSettings]
Settings for the input devices.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .input_devices.is_none()
.
Sourcepub fn input_partner_ids(&self) -> &[String]
pub fn input_partner_ids(&self) -> &[String]
A list of IDs for all Inputs which are partners of this one.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .input_partner_ids.is_none()
.
Sourcepub fn input_source_type(&self) -> Option<&InputSourceType>
pub fn input_source_type(&self) -> Option<&InputSourceType>
Certain pull input sources can be dynamic, meaning that they can have their URL’s dynamically changes during input switch actions. Presently, this functionality only works with MP4_FILE and TS_FILE inputs.
Sourcepub fn media_connect_flows(&self) -> &[MediaConnectFlow]
pub fn media_connect_flows(&self) -> &[MediaConnectFlow]
A list of MediaConnect Flows for this input.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .media_connect_flows.is_none()
.
Sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the role this input assumes during and after creation.
Sourcepub fn security_groups(&self) -> &[String]
pub fn security_groups(&self) -> &[String]
A list of IDs for all the Input Security Groups attached to the input.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .security_groups.is_none()
.
Sourcepub fn sources(&self) -> &[InputSource]
pub fn sources(&self) -> &[InputSource]
A list of the sources of the input (PULL-type).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sources.is_none()
.
Sourcepub fn state(&self) -> Option<&InputState>
pub fn state(&self) -> Option<&InputState>
Placeholder documentation for InputState
A collection of key-value pairs.
Sourcepub fn type(&self) -> Option<&InputType>
pub fn type(&self) -> Option<&InputType>
The different types of inputs that AWS Elemental MediaLive supports.
Sourcepub fn srt_settings(&self) -> Option<&SrtSettings>
pub fn srt_settings(&self) -> Option<&SrtSettings>
The settings associated with an SRT input.
Sourcepub fn input_network_location(&self) -> Option<&InputNetworkLocation>
pub fn input_network_location(&self) -> Option<&InputNetworkLocation>
The location of this input. AWS, for an input existing in the AWS Cloud, On-Prem for an input in a customer network.
Sourcepub fn multicast_settings(&self) -> Option<&MulticastSettings>
pub fn multicast_settings(&self) -> Option<&MulticastSettings>
Multicast Input settings.
Sourcepub fn smpte2110_receiver_group_settings(
&self,
) -> Option<&Smpte2110ReceiverGroupSettings>
pub fn smpte2110_receiver_group_settings( &self, ) -> Option<&Smpte2110ReceiverGroupSettings>
Include this parameter if the input is a SMPTE 2110 input, to identify the stream sources for this input.
Sourcepub fn sdi_sources(&self) -> &[String]
pub fn sdi_sources(&self) -> &[String]
SDI Sources for this Input.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sdi_sources.is_none()
.
Trait Implementations§
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);