Enum rbx_xml::EncodePropertyBehavior
source · #[non_exhaustive]pub enum EncodePropertyBehavior {
IgnoreUnknown,
WriteUnknown,
ErrorOnUnknown,
NoReflection,
}
Expand description
Describes the strategy that rbx_xml should use when serializing properties.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
IgnoreUnknown
Ignores properties that aren’t known by rbx_xml.
This is the default.
WriteUnknown
Write unrecognized properties.
With this option set, properties that are newer than rbx_xml’s reflection database will show up. It may be problematic to depend on these properties, since rbx_xml may start supporting them with non-reflection specific names at a future date.
ErrorOnUnknown
Returns an error if any properties are found that aren’t known by rbx_xml.
NoReflection
Completely turns off rbx_xml’s reflection database. Property names and types will appear exactly as they are in the tree.
This setting is useful for debugging the model format. It leaves the
user to deal with oddities like how Part.FormFactor
is actually
serialized as Part.formFactorRaw
.
Trait Implementations§
source§impl Clone for EncodePropertyBehavior
impl Clone for EncodePropertyBehavior
source§fn clone(&self) -> EncodePropertyBehavior
fn clone(&self) -> EncodePropertyBehavior
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncodePropertyBehavior
impl Debug for EncodePropertyBehavior
source§impl Hash for EncodePropertyBehavior
impl Hash for EncodePropertyBehavior
source§impl PartialEq for EncodePropertyBehavior
impl PartialEq for EncodePropertyBehavior
impl Copy for EncodePropertyBehavior
impl Eq for EncodePropertyBehavior
impl StructuralPartialEq for EncodePropertyBehavior
Auto Trait Implementations§
impl Freeze for EncodePropertyBehavior
impl RefUnwindSafe for EncodePropertyBehavior
impl Send for EncodePropertyBehavior
impl Sync for EncodePropertyBehavior
impl Unpin for EncodePropertyBehavior
impl UnwindSafe for EncodePropertyBehavior
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)