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 SyncStreamDto {
    #[serde(rename = "reset", skip_serializing_if = "Option::is_none")]
    pub reset: Option<bool>,
    #[serde(rename = "types")]
    pub types: Vec<models::SyncRequestType>,
}

impl SyncStreamDto {
    pub fn new(types: Vec<models::SyncRequestType>) -> SyncStreamDto {
        SyncStreamDto {
            reset: None,
            types,
        }
    }
}