Struct stremio_core::deep_links::ExternalPlayerLink
source · pub struct ExternalPlayerLink {
pub download: Option<String>,
pub streaming: Option<String>,
pub playlist: Option<String>,
pub file_name: Option<String>,
pub open_player: Option<OpenPlayerLink>,
pub web: Option<Url>,
pub android_tv: Option<Url>,
pub tizen: Option<String>,
pub webos: Option<String>,
}
Fields§
§download: Option<String>
§streaming: Option<String>
§playlist: Option<String>
m3u data URI
file_name: Option<String>
Filename of the playlist
open_player: Option<OpenPlayerLink>
§web: Option<Url>
External URL for Web
android_tv: Option<Url>
External URI for Android TV
tizen: Option<String>
External payload for Tizen
webos: Option<String>
External payload for webOS
Trait Implementations§
source§impl Debug for ExternalPlayerLink
impl Debug for ExternalPlayerLink
source§impl Default for ExternalPlayerLink
impl Default for ExternalPlayerLink
source§fn default() -> ExternalPlayerLink
fn default() -> ExternalPlayerLink
Returns the “default value” for a type. Read more
source§impl From<(&Stream, &Option<Url>, &Settings)> for ExternalPlayerLink
impl From<(&Stream, &Option<Url>, &Settings)> for ExternalPlayerLink
Using &Option<Url>
is not encouraged, use .as_ref()
to get an Option<&Url>
instead!
source§impl From<(&Stream, Option<&Url>, &Settings)> for ExternalPlayerLink
impl From<(&Stream, Option<&Url>, &Settings)> for ExternalPlayerLink
source§fn from(
(stream, streaming_server_url, settings): (&Stream, Option<&Url>, &Settings),
) -> Self
fn from( (stream, streaming_server_url, settings): (&Stream, Option<&Url>, &Settings), ) -> Self
Create an ExternalPlayerLink
using the Stream
,
the server url (from StreamingServer::base_url
which indicates a running or not server)
and the user’s Settings
in order to use the Settings::player_type
for generating a
player-specific url.
source§impl PartialEq for ExternalPlayerLink
impl PartialEq for ExternalPlayerLink
source§impl Serialize for ExternalPlayerLink
impl Serialize for ExternalPlayerLink
impl Eq for ExternalPlayerLink
impl StructuralPartialEq for ExternalPlayerLink
Auto Trait Implementations§
impl Freeze for ExternalPlayerLink
impl RefUnwindSafe for ExternalPlayerLink
impl Send for ExternalPlayerLink
impl Sync for ExternalPlayerLink
impl Unpin for ExternalPlayerLink
impl UnwindSafe for ExternalPlayerLink
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