pixieve-rs 0.4.0

Unofficial fork of an unofficial rust library for the Pixiv API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::pixiv::helper_structs::illustration::Illustration;

use serde::{Deserialize, Serialize};

/// PixivClient hides the actual illustration object behind the value "illust".
/// This struct exists purely to bypass this indirection...
#[derive(Serialize, Deserialize, Debug)]
pub struct IllustrationSearchProxy {
    illusts: Vec<Illustration>,
    next_url: String,
    search_span_limit: u32,
}

impl IllustrationSearchProxy {
    pub fn into_inner(self) -> Vec<Illustration> {
        self.illusts
    }
}