pub struct CreateIngressRequest {
pub input_type: i32,
pub url: String,
pub name: String,
pub room_name: String,
pub participant_identity: String,
pub participant_name: String,
pub participant_metadata: String,
pub bypass_transcoding: bool,
pub enable_transcoding: Option<bool>,
pub audio: Option<IngressAudioOptions>,
pub video: Option<IngressVideoOptions>,
pub enabled: Option<bool>,
}
Fields§
§input_type: i32
§url: String
Where to pull media from, only for URL input type
name: String
User provided identifier for the ingress
room_name: String
room to publish to
participant_identity: String
publish as participant
participant_name: String
name of publishing participant (used for display only)
participant_metadata: String
metadata associated with the publishing participant
bypass_transcoding: bool
[depreacted ] whether to pass through the incoming media without transcoding, only compatible with some input types. Use enable_transcoding
instead.
enable_transcoding: Option<bool>
Whether to transcode the ingested media. Only WHIP supports disabling transcoding currently. WHIP will default to transcoding disabled. Replaces `bypass_transcoding.
audio: Option<IngressAudioOptions>
§video: Option<IngressVideoOptions>
§enabled: Option<bool>
The default value is true and when set to false, the new connection attempts will be rejected
Implementations§
Source§impl CreateIngressRequest
impl CreateIngressRequest
Sourcepub fn input_type(&self) -> IngressInput
pub fn input_type(&self) -> IngressInput
Returns the enum value of input_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_input_type(&mut self, value: IngressInput)
pub fn set_input_type(&mut self, value: IngressInput)
Sets input_type
to the provided enum value.
Sourcepub fn enable_transcoding(&self) -> bool
pub fn enable_transcoding(&self) -> bool
Returns the value of enable_transcoding
, or the default value if enable_transcoding
is unset.
Trait Implementations§
Source§impl Clone for CreateIngressRequest
impl Clone for CreateIngressRequest
Source§fn clone(&self) -> CreateIngressRequest
fn clone(&self) -> CreateIngressRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateIngressRequest
impl Debug for CreateIngressRequest
Source§impl Default for CreateIngressRequest
impl Default for CreateIngressRequest
§impl<'de> Deserialize<'de> for CreateIngressRequest
impl<'de> Deserialize<'de> for CreateIngressRequest
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for CreateIngressRequest
impl Message for CreateIngressRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.