instagram-basic-display-api 0.3.0

Instagram Basic Display API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use serde_aux::field_attributes::deserialize_number_from_string;

use super::AccountType;

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct User {
    pub account_type: AccountType,
    #[serde(deserialize_with = "deserialize_number_from_string")]
    pub id: u64,
    pub username: String,
    /*
    media_count = edge_owner_to_timeline_media.count + count of reels without "share to Feed"
    */
    #[serde(default)]
    pub media_count: Option<usize>,
}