mirror of https://github.com/buster-so/buster.git
asset type
This commit is contained in:
parent
3430b8c273
commit
8579aafd0a
|
@ -18,7 +18,7 @@ use middleware::AuthenticatedUser;
|
|||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||
pub struct FavoriteIdAndType {
|
||||
pub id: Uuid,
|
||||
#[serde(rename = "type")]
|
||||
#[serde(rename = "asset_type")]
|
||||
pub type_: AssetType,
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ pub struct CollectionFavorites {
|
|||
pub collection_id: Uuid,
|
||||
pub collection_name: String,
|
||||
pub assets: Vec<FavoriteObject>,
|
||||
#[serde(rename = "type")]
|
||||
#[serde(rename = "asset_type")]
|
||||
pub type_: AssetType,
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ pub struct CollectionFavorites {
|
|||
pub struct FavoriteObject {
|
||||
pub id: Uuid,
|
||||
pub name: String,
|
||||
#[serde(rename = "type")]
|
||||
#[serde(rename = "asset_type")]
|
||||
pub type_: AssetType,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue