pub struct MediaStream {
pub stream_type: String,
pub kind: StreamKind,
pub codec: Option<String>,
pub language: Option<String>,
pub display_title: Option<String>,
pub index: i32,
pub is_default: bool,
pub is_forced: bool,
pub supports_external_delivery: Option<bool>,
}Expand description
Media stream information (audio, video, subtitle tracks)
Fields§
§stream_type: StringLegacy Jellyfin stream type string (“Audio”/“Video”/“Subtitle”). Being
replaced by kind; dual-carried while the frontend migrates.
kind: StreamKindProvider-neutral stream classification — replaces stream_type.
codec: Option<String>§language: Option<String>§display_title: Option<String>§index: i32§is_default: bool§is_forced: bool§supports_external_delivery: Option<bool>Whether this stream can reach the app as a sidecar it renders itself.
None for anything that is not a subtitle — the question does not apply,
and false there would read like a verdict. For a subtitle it is the
difference between a track the app can draw and one only the server could
have shown, by burning it into the picture (DR-176) — which this app never
asks it to do. The vocabulary of which formats those are stays in Rust;
the frontend only reads the answer.
TRACES: UR-020 | DR-176 | UT-168
Trait Implementations§
Source§impl Clone for MediaStream
impl Clone for MediaStream
Source§fn clone(&self) -> MediaStream
fn clone(&self) -> MediaStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaStream
impl Debug for MediaStream
Source§impl<'de> Deserialize<'de> for MediaStream
impl<'de> Deserialize<'de> for MediaStream
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl NamedType for MediaStream
impl NamedType for MediaStream
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to [Type::inline] but returns a [NamedDataType] instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a [NamedDataType] instead.
Source§impl Serialize for MediaStream
impl Serialize for MediaStream
Source§impl Type for MediaStream
impl Type for MediaStream
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Flatten for MediaStream
Auto Trait Implementations§
impl Freeze for MediaStream
impl RefUnwindSafe for MediaStream
impl Send for MediaStream
impl Sync for MediaStream
impl Unpin for MediaStream
impl UnsafeUnpin for MediaStream
impl UnwindSafe for MediaStream
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> FunctionArg for Twhere
T: Type,
impl<T> FunctionArg for Twhere
T: Type,
§fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
fn to_datatype(type_map: &mut TypeCollection) -> Option<DataType>
Gets the type of an argument as a [
DataType]. Read more