immich_api_rs 1.137.3

Immich API
Documentation
/*
 * Immich
 *
 * Immich API
 *
 * The version of the OpenAPI document: 1.137.3
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TimeBucketsResponseDto {
    /// Number of assets in this time bucket
    #[serde(rename = "count")]
    pub count: i32,
    /// Time bucket identifier in YYYY-MM-DD format representing the start of the time period
    #[serde(rename = "timeBucket")]
    pub time_bucket: String,
}

impl TimeBucketsResponseDto {
    pub fn new(count: i32, time_bucket: String) -> TimeBucketsResponseDto {
        TimeBucketsResponseDto {
            count,
            time_bucket,
        }
    }
}