tawasuyu/llimphi
Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.
⎇ main
shared/foreign-lottie/src/schema/assets/file_asset.rs
Ñawpa willay
Pi imata llamkarqan
ch'uya
1// Copyright 2024 the Velato Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4use super::asset::Asset;
5use crate::schema::helpers::int_boolean::BoolInt;
6use serde::{Deserialize, Serialize};
7
8/// Asset referencing a file
9#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
10pub struct FileAsset {
11 #[serde(flatten)]
12 pub asset: Asset,
13 /// Path to the directory containing a file
14 #[serde(rename = "u")]
15 #[serde(skip_serializing_if = "Option::is_none")]
16 pub dir: Option<String>,
17 /// Filename or data url
18 #[serde(rename = "p")]
19 pub file_name: String,
20 /// Whether the file is embedded
21 #[serde(rename = "e", default)]
22 #[serde(skip_serializing_if = "Option::is_none")]
23 pub embedded: Option<BoolInt>,
24}