#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PatchedBulkWritableImageAttachmentRequest {
#[serde(rename = "id")]
pub id: uuid::Uuid,
#[serde(rename = "content_type", skip_serializing_if = "Option::is_none")]
pub content_type: Option<String>,
#[serde(rename = "object_id", skip_serializing_if = "Option::is_none")]
pub object_id: Option<uuid::Uuid>,
#[serde(rename = "image", skip_serializing_if = "Option::is_none")]
pub image: Option<std::path::PathBuf>,
#[serde(rename = "image_height", skip_serializing_if = "Option::is_none")]
pub image_height: Option<i32>,
#[serde(rename = "image_width", skip_serializing_if = "Option::is_none")]
pub image_width: Option<i32>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
impl PatchedBulkWritableImageAttachmentRequest {
pub fn new(id: uuid::Uuid) -> PatchedBulkWritableImageAttachmentRequest {
PatchedBulkWritableImageAttachmentRequest {
id,
content_type: None,
object_id: None,
image: None,
image_height: None,
image_width: None,
name: None,
}
}
}