Skip to main content

rosu_render/model/
dynlink.rs

1use hyper::{body::Bytes, StatusCode};
2use serde::Deserialize;
3
4use crate::{request::Requestable, ClientError};
5
6/// A temporary video download link.
7#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
8pub struct DynLink {
9    /// The temporary download URL of the rendered video.
10    pub url: Box<str>,
11}
12
13impl Requestable for DynLink {
14    fn response_error(status: StatusCode, bytes: Bytes) -> ClientError {
15        ClientError::response_error(bytes, status.as_u16())
16    }
17}