reddit-rs 0.1.1

A wrapper around the Reddit API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use iri_string::types::IriString;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum IconFormat {
    Png,
    Apng,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct Icon {
    url: IriString,
    width: u16,
    height: u16,
    format: Option<IconFormat>,
}