pexels_client 0.1.1

Rust wrapper for Pexels API
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::photos::Photo;
use crate::videos::Video;
use serde::{Deserialize, Serialize};

/// `Photo` or `Video` type in Collection
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CollectionMedia {
    Photo(Photo),
    Video(Video),
}