rosu-render 0.5.3

An o!rdr wrapper to render osu! replays
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use hyper::{body::Bytes, StatusCode};
use serde::Deserialize;

use crate::{request::Requestable, ClientError};

/// A temporary video download link.
#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]
pub struct DynLink {
    /// The temporary download URL of the rendered video.
    pub url: Box<str>,
}

impl Requestable for DynLink {
    fn response_error(status: StatusCode, bytes: Bytes) -> ClientError {
        ClientError::response_error(bytes, status.as_u16())
    }
}