roux 2.2.15

Simple and (a)synchronous Reddit API wrapper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # Subreddit Comment Responses
use serde::{Deserialize, Serialize};

use crate::models::comment::CommentData;
use crate::models::response::BasicListing;

/// Doc
pub type Replies = BasicListing<CommentData>;

/// Replies can be more comments or an empty string
#[derive(Debug, Serialize, Deserialize)]
#[serde(untagged)]
pub enum MaybeReplies {
    /// Reply
    Reply(Replies),
    /// String
    Str(String),
}