pub struct GameMedia {
pub screenshots: Vec<String>,
pub trailers: Vec<String>,
pub youtube_embeds: Vec<String>,
pub micro_trailer: Option<String>,
}Expand description
Mídia de um jogo retornada para a aba Mídia do GameWindow.
Separa os vídeos em dois grupos já classificados:
trailers:.webmdo Steam CDN — reprodução direta no<video>youtube_embeds: URLsyoutube-nocookie.com— renderizadas em<iframe>
Essa separação acontece no backend para não vazar lógica de parsing de URL para o frontend.
Fields§
§screenshots: Vec<String>§trailers: Vec<String>.webm diretos (Steam CDN). Prontos para <video src=...>.
youtube_embeds: Vec<String>Embeds do YouTube (youtube-nocookie.com/embed/...). Prontos para <iframe src=...>.
micro_trailer: Option<String>Micro-trailer de loop curto, se disponível.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GameMedia
impl<'de> Deserialize<'de> for GameMedia
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
Auto Trait Implementations§
impl Freeze for GameMedia
impl RefUnwindSafe for GameMedia
impl Send for GameMedia
impl Sync for GameMedia
impl Unpin for GameMedia
impl UnsafeUnpin for GameMedia
impl UnwindSafe for GameMedia
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 more