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 SyncPartnerV1 {
    #[serde(rename = "inTimeline")]
    pub in_timeline: bool,
    #[serde(rename = "sharedById")]
    pub shared_by_id: String,
    #[serde(rename = "sharedWithId")]
    pub shared_with_id: String,
}

impl SyncPartnerV1 {
    pub fn new(in_timeline: bool, shared_by_id: String, shared_with_id: String) -> SyncPartnerV1 {
        SyncPartnerV1 {
            in_timeline,
            shared_by_id,
            shared_with_id,
        }
    }
}