havok_classes/generated/
hkaKeyFrameHierarchyUtility_.rs

1use super::class_requires::*;
2use super::*;
3/// # C++ Info
4/// - name: `hkaKeyFrameHierarchyUtility`
5/// - version: `0`
6/// - signature: `0x7bd5c66f`
7/// - size: `  1`(x86)/`  1`(x86_64)
8/// -  vtable: `false`
9#[allow(non_upper_case_globals, non_snake_case)]
10#[cfg_attr(feature = "json_schema", derive(schemars::JsonSchema))]
11#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
12#[derive(educe::Educe)]
13#[educe(Debug, Clone, Default, PartialEq)]
14pub struct hkaKeyFrameHierarchyUtility {
15    /// # Unique index for this class
16    /// - Represents a pointer on XML (`<hkobject name="#0001"></hkobject>`)
17    /// - [`Option::None`] => This class is `class in field`.(`<hkobject></hkobject>`)
18    ///
19    /// # Note
20    /// Not present in the binary & Not exist actual C++ field.
21    #[cfg_attr(
22        feature = "serde",
23        serde(skip_serializing_if = "Option::is_none", default)
24    )]
25    pub __ptr: Option<Pointer>,
26}
27const _: () = {
28    use havok_serde as _serde;
29    impl _serde::HavokClass for hkaKeyFrameHierarchyUtility {
30        #[inline]
31        fn name(&self) -> &'static str {
32            "hkaKeyFrameHierarchyUtility"
33        }
34        #[inline]
35        fn signature(&self) -> _serde::__private::Signature {
36            _serde::__private::Signature::new(0x7bd5c66f)
37        }
38        #[allow(clippy::let_and_return, clippy::vec_init_then_push)]
39        fn deps_indexes(&self) -> Vec<usize> {
40            let mut v = Vec::new();
41            v
42        }
43    }
44    impl _serde::Serialize for hkaKeyFrameHierarchyUtility {
45        fn serialize<S>(&self, __serializer: S) -> Result<S::Ok, S::Error>
46        where
47            S: _serde::ser::Serializer,
48        {
49            let class_meta = self
50                .__ptr
51                .map(|name| (name, _serde::__private::Signature::new(0x7bd5c66f)));
52            let mut serializer = __serializer
53                .serialize_struct(
54                    "hkaKeyFrameHierarchyUtility",
55                    class_meta,
56                    (1u64, 1u64),
57                )?;
58            serializer.pad_field([0u8; 1usize].as_slice(), [0u8; 1usize].as_slice())?;
59            serializer.end()
60        }
61    }
62};
63#[doc(hidden)]
64#[allow(non_upper_case_globals, unused_attributes, unused_qualifications)]
65const _: () = {
66    use havok_serde as _serde;
67    #[automatically_derived]
68    impl<'de> _serde::Deserialize<'de> for hkaKeyFrameHierarchyUtility {
69        fn deserialize<__D>(deserializer: __D) -> core::result::Result<Self, __D::Error>
70        where
71            __D: _serde::Deserializer<'de>,
72        {
73            #[allow(non_camel_case_types)]
74            enum __Field {
75                __ignore,
76            }
77            struct __FieldVisitor;
78            impl<'de> _serde::de::Visitor<'de> for __FieldVisitor {
79                type Value = __Field;
80                fn expecting(
81                    &self,
82                    __formatter: &mut core::fmt::Formatter,
83                ) -> core::fmt::Result {
84                    core::fmt::Formatter::write_str(__formatter, "field identifier")
85                }
86                /// Intended for use in XML.
87                #[allow(clippy::match_single_binding)]
88                #[allow(clippy::reversed_empty_ranges)]
89                #[allow(clippy::single_match)]
90                fn visit_key<__E>(
91                    self,
92                    __value: &str,
93                ) -> core::result::Result<Self::Value, __E>
94                where
95                    __E: _serde::de::Error,
96                {
97                    match __value {
98                        _ => Ok(__Field::__ignore),
99                    }
100                }
101            }
102            impl<'de> _serde::Deserialize<'de> for __Field {
103                #[inline]
104                fn deserialize<__D>(
105                    __deserializer: __D,
106                ) -> core::result::Result<Self, __D::Error>
107                where
108                    __D: _serde::Deserializer<'de>,
109                {
110                    _serde::Deserializer::deserialize_key(__deserializer, __FieldVisitor)
111                }
112            }
113            struct __hkaKeyFrameHierarchyUtilityVisitor<'de> {
114                marker: _serde::__private::PhantomData<hkaKeyFrameHierarchyUtility>,
115                lifetime: _serde::__private::PhantomData<&'de ()>,
116            }
117            #[allow(clippy::match_single_binding)]
118            #[allow(clippy::reversed_empty_ranges)]
119            #[allow(clippy::single_match)]
120            impl<'de> _serde::de::Visitor<'de>
121            for __hkaKeyFrameHierarchyUtilityVisitor<'de> {
122                type Value = hkaKeyFrameHierarchyUtility;
123                fn expecting(
124                    &self,
125                    __formatter: &mut core::fmt::Formatter,
126                ) -> core::fmt::Result {
127                    core::fmt::Formatter::write_str(
128                        __formatter,
129                        "struct hkaKeyFrameHierarchyUtility",
130                    )
131                }
132                fn visit_struct_for_bytes<__A>(
133                    self,
134                    mut __map: __A,
135                ) -> _serde::__private::Result<Self::Value, __A::Error>
136                where
137                    __A: _serde::de::MapAccess<'de>,
138                {
139                    let __ptr = __A::class_ptr(&mut __map);
140                    for i in 0..0usize {
141                        match i {
142                            _ => {}
143                        }
144                    }
145                    __A::pad(&mut __map, 1usize, 1usize)?;
146                    _serde::__private::Ok(hkaKeyFrameHierarchyUtility {
147                        __ptr,
148                    })
149                }
150                #[allow(clippy::manual_unwrap_or_default)]
151                fn visit_struct<__A>(
152                    self,
153                    mut __map: __A,
154                ) -> _serde::__private::Result<Self::Value, __A::Error>
155                where
156                    __A: _serde::de::MapAccess<'de>,
157                {
158                    while let _serde::__private::Some(__key) = {
159                        __A::next_key::<__Field>(&mut __map)?
160                    } {
161                        match __key {
162                            _ => __A::skip_value(&mut __map)?,
163                        }
164                    }
165                    let __ptr = __A::class_ptr(&mut __map);
166                    _serde::__private::Ok(hkaKeyFrameHierarchyUtility {
167                        __ptr,
168                    })
169                }
170            }
171            const FIELDS: &[&str] = &[];
172            _serde::Deserializer::deserialize_struct(
173                deserializer,
174                "hkaKeyFrameHierarchyUtility",
175                FIELDS,
176                __hkaKeyFrameHierarchyUtilityVisitor {
177                    marker: _serde::__private::PhantomData::<
178                        hkaKeyFrameHierarchyUtility,
179                    >,
180                    lifetime: _serde::__private::PhantomData,
181                },
182            )
183        }
184    }
185};