asset type

This commit is contained in:
dal 2025-03-13 14:30:38 -06:00
parent 3430b8c273
commit 8579aafd0a
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ use middleware::AuthenticatedUser;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)] #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct FavoriteIdAndType { pub struct FavoriteIdAndType {
pub id: Uuid, pub id: Uuid,
#[serde(rename = "type")] #[serde(rename = "asset_type")]
pub type_: AssetType, pub type_: AssetType,
} }
@ -32,7 +32,7 @@ pub struct CollectionFavorites {
pub collection_id: Uuid, pub collection_id: Uuid,
pub collection_name: String, pub collection_name: String,
pub assets: Vec<FavoriteObject>, pub assets: Vec<FavoriteObject>,
#[serde(rename = "type")] #[serde(rename = "asset_type")]
pub type_: AssetType, pub type_: AssetType,
} }
@ -40,7 +40,7 @@ pub struct CollectionFavorites {
pub struct FavoriteObject { pub struct FavoriteObject {
pub id: Uuid, pub id: Uuid,
pub name: String, pub name: String,
#[serde(rename = "type")] #[serde(rename = "asset_type")]
pub type_: AssetType, pub type_: AssetType,
} }