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 ReverseGeocodingStateResponseDto {
    #[serde(rename = "lastImportFileName", deserialize_with = "Option::deserialize")]
    pub last_import_file_name: Option<String>,
    #[serde(rename = "lastUpdate", deserialize_with = "Option::deserialize")]
    pub last_update: Option<String>,
}

impl ReverseGeocodingStateResponseDto {
    pub fn new(last_import_file_name: Option<String>, last_update: Option<String>) -> ReverseGeocodingStateResponseDto {
        ReverseGeocodingStateResponseDto {
            last_import_file_name,
            last_update,
        }
    }
}