euv_cli/blender/enum.rs
1use super::*;
2
3/// Recognized 3D asset container formats supported by `euv blender` subcommands.
4#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
5#[serde(rename_all = "lowercase")]
6pub enum BlenderAssetFormat {
7 /// Native Blender `.blend` database (4.x classic or 5.x large header).
8 Blend,
9 /// Binary Khronos glTF 2.0 `.glb` container.
10 Glb,
11 /// UTF-8 JSON Khronos glTF 2.0 `.gltf` document.
12 Gltf,
13 /// Pre-baked zero-copy 64-byte-aligned `.euv3d` archive.
14 Euv3d,
15 /// Wavefront `.obj` ASCII geometry mesh.
16 Obj,
17}
18
19/// Resolution source identifying how the local Blender executable was discovered.
20#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, Hash, PartialEq, Serialize)]
21#[serde(rename_all = "kebab-case")]
22pub enum BlenderBinarySource {
23 /// Explicit `--blender-bin` CLI flag.
24 CliFlag,
25 /// `EUV_BLENDER_BIN` environment variable.
26 EnvVar,
27 /// `blender` executable discovered on `PATH`.
28 Path,
29 /// Standard OS application installation directory (macOS `/Applications`, Windows `Program Files`, Linux `/usr/bin`).
30 OsInstall,
31 /// No Blender executable detected on this machine.
32 #[default]
33 NotFound,
34}
35
36/// Event kinds streamed over `GET /blender/events` by `euv blender live-sync`.
37#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
38#[serde(rename_all = "snake_case")]
39pub enum BlenderLiveEventKind {
40 /// Fast JSON transform, camera, light, material, or morph-weight delta.
41 Delta,
42 /// Selective binary `.glb` or `.euv3d` asset hot-swap notification.
43 Asset,
44}