megalodon 1.0.1

Mastodon and Pleroma API client library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct Marker {
    pub home: Option<InnerMarker>,
    pub notifications: Option<InnerMarker>,
}

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct InnerMarker {
    pub last_read_id: String,
    pub version: u32,
    pub updated_at: DateTime<Utc>,
    pub unread_count: Option<u32>,
}