Struct GetVideoLinkParams

Source
pub struct GetVideoLinkParams<'a> {
    pub audio_bit_rate: Option<u16>,
    pub video_bit_rate: Option<u32>,
    pub resolution: Option<Cow<'a, str>>,
    pub fixed_bit_rate: bool,
}
Expand description

Parameters for retrieving a video file link, including options for controlling the audio bit rate, video bit rate, resolution, and fixed bitrate streaming.

Fields§

§audio_bit_rate: Option<u16>

Audio bit rate in kilobits per second (from 16 to 320).

§video_bit_rate: Option<u32>

Video bit rate in kilobits per second (from 16 to 4000).

§resolution: Option<Cow<'a, str>>

Resolution of the video in the format WIDTHxHEIGHT (e.g., 1280x960), with a range of 64x64 to 1280x960.

§fixed_bit_rate: bool

If set to true, disables adaptive streaming and forces the video stream to have a constant bitrate.

Implementations§

Source§

impl<'a> GetVideoLinkParams<'a>

Source

pub fn set_audio_bit_rate(&mut self, value: u16)

Sets the audio bit rate for the video link.

§Arguments
  • value - Audio bit rate in kilobits per second (from 16 to 320).
Source

pub fn with_audio_bit_rate(self, value: u16) -> Self

Sets the audio bit rate and returns the updated GetVideoLinkParams object.

§Arguments
  • value - Audio bit rate in kilobits per second (from 16 to 320).
Source

pub fn set_video_bit_rate(&mut self, value: u32)

Sets the video bit rate for the video link.

§Arguments
  • value - Video bit rate in kilobits per second (from 16 to 4000).
Source

pub fn with_video_bit_rate(self, value: u32) -> Self

Sets the video bit rate and returns the updated GetVideoLinkParams object.

§Arguments
  • value - Video bit rate in kilobits per second (from 16 to 4000).
Source

pub fn set_resolution(&mut self, value: impl Into<Cow<'a, str>>)

Sets the resolution for the video link.

§Arguments
  • value - The resolution in the format WIDTHxHEIGHT (e.g., 1280x960).
Source

pub fn with_resolution(self, value: impl Into<Cow<'a, str>>) -> Self

Sets the resolution and returns the updated GetVideoLinkParams object.

§Arguments
  • value - The resolution in the format WIDTHxHEIGHT (e.g., 1280x960).
Source

pub fn set_fixed_bit_rate(&mut self, value: bool)

Sets the fixed_bit_rate flag.

§Arguments
  • value - A boolean indicating whether the video should have a fixed bitrate.
Source

pub fn with_fixed_bit_rate(self, value: bool) -> Self

Sets the fixed_bit_rate flag and returns the updated GetVideoLinkParams object.

§Arguments
  • value - A boolean indicating whether the video should have a fixed bitrate.

Trait Implementations§

Source§

impl<'a> Debug for GetVideoLinkParams<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for GetVideoLinkParams<'a>

Source§

fn default() -> GetVideoLinkParams<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Serialize for GetVideoLinkParams<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for GetVideoLinkParams<'a>

§

impl<'a> RefUnwindSafe for GetVideoLinkParams<'a>

§

impl<'a> Send for GetVideoLinkParams<'a>

§

impl<'a> Sync for GetVideoLinkParams<'a>

§

impl<'a> Unpin for GetVideoLinkParams<'a>

§

impl<'a> UnwindSafe for GetVideoLinkParams<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T