qubit_fs/metadata/file_kind.rs
1// =============================================================================
2// Copyright (c) 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! File kind model.
9
10/// Provider-neutral resource kind.
11///
12/// # Examples
13///
14/// ```rust
15/// use qubit_fs::metadata::FileKind;
16///
17/// assert!(matches!(FileKind::File, FileKind::File));
18/// ```
19#[derive(Clone, Debug, Eq, PartialEq)]
20pub enum FileKind {
21 /// Regular file.
22 File,
23 /// Directory with hierarchical semantics.
24 Directory,
25 /// Symbolic link.
26 Symlink,
27 /// Object-store object.
28 Object,
29 /// Object-store prefix or WebDAV collection-like prefix.
30 Prefix,
31 /// Provider-specific resource type.
32 Other(
33 /// Provider-defined resource kind name.
34 String,
35 ),
36}