anaso_site_api_models 0.0.19

API models for Ana.so
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

/// Image ID, and other useful info.
#[derive(bon::Builder, Clone, Debug, Deserialize, Serialize)]
pub struct Image {
    /// Aspect ratio.
    ///
    /// width / height
    pub aspect: Option<f32>,
    /// Original image width.
    pub width: Option<f32>,
    /// Original image height.
    pub height: Option<f32>,
    /// Cloudflare image storage id.
    ///
    /// This will _usually_ be a UUID, but it's not guaranteed to be.
    pub id: String,
}