engage/generated/system/io/
fileattributes.rs1#[cfg(feature = "system-io-fileattributes-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/fileattributes/FileAttributes.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct FileAttributes {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for FileAttributes {
21 const NAME: &'static str = "FileAttributes";
22 const NAMESPACE: &'static str = "System.IO";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for FileAttributes {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl FileAttributes {
35 pub fn archive() -> Self {
36 Self { value: 32 }
37 }
38
39 pub fn compressed() -> Self {
40 Self { value: 2048 }
41 }
42
43 pub fn device() -> Self {
44 Self { value: 64 }
45 }
46
47 pub fn directory() -> Self {
48 Self { value: 16 }
49 }
50
51 pub fn encrypted() -> Self {
52 Self { value: 16384 }
53 }
54
55 pub fn hidden() -> Self {
56 Self { value: 2 }
57 }
58
59 pub fn normal() -> Self {
60 Self { value: 128 }
61 }
62
63 pub fn not_content_indexed() -> Self {
64 Self { value: 8192 }
65 }
66
67 pub fn offline() -> Self {
68 Self { value: 4096 }
69 }
70
71 pub fn read_only() -> Self {
72 Self { value: 1 }
73 }
74
75 pub fn reparse_point() -> Self {
76 Self { value: 1024 }
77 }
78
79 pub fn sparse_file() -> Self {
80 Self { value: 512 }
81 }
82
83 pub fn system() -> Self {
84 Self { value: 4 }
85 }
86
87 pub fn temporary() -> Self {
88 Self { value: 256 }
89 }
90
91 pub fn integrity_stream() -> Self {
92 Self { value: 32768 }
93 }
94
95 pub fn no_scrub_data() -> Self {
96 Self { value: 131072 }
97 }
98 }
99}
100
101#[cfg(feature = "system-io-fileattributes-types")]
102pub use __types::*;
103
104#[cfg(feature = "system-io-fileattributes")]
105#[doc(hidden)]
106pub mod prelude {
107 pub use super::FileAttributes;
108 #[cfg(feature = "system-object")]
109 pub use crate::system::object::IObjectMethods;
110 #[cfg(feature = "system-enum")]
111 pub use crate::system::r#enum::IEnumMethods;
112 #[cfg(feature = "system-valuetype")]
113 pub use crate::system::valuetype::IValueTypeMethods;
114 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
115}