Struct rbx_xml::EncodeOptions
source · pub struct EncodeOptions<'db> { /* private fields */ }
Expand description
Options available for serializing an XML-format model or place.
Implementations§
source§impl<'db> EncodeOptions<'db>
impl<'db> EncodeOptions<'db>
sourcepub fn property_behavior(
self,
property_behavior: EncodePropertyBehavior,
) -> Self
pub fn property_behavior( self, property_behavior: EncodePropertyBehavior, ) -> Self
Determines how rbx_xml will serialize properties, especially unknown ones.
sourcepub fn reflection_database(self, database: &'db ReflectionDatabase<'db>) -> Self
pub fn reflection_database(self, database: &'db ReflectionDatabase<'db>) -> Self
Determines what reflection database rbx_xml will use to serialize properties.
Trait Implementations§
source§impl<'db> Clone for EncodeOptions<'db>
impl<'db> Clone for EncodeOptions<'db>
source§fn clone(&self) -> EncodeOptions<'db>
fn clone(&self) -> EncodeOptions<'db>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'db> Debug for EncodeOptions<'db>
impl<'db> Debug for EncodeOptions<'db>
source§impl<'db> Default for EncodeOptions<'db>
impl<'db> Default for EncodeOptions<'db>
source§fn default() -> EncodeOptions<'db>
fn default() -> EncodeOptions<'db>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'db> Freeze for EncodeOptions<'db>
impl<'db> RefUnwindSafe for EncodeOptions<'db>
impl<'db> Send for EncodeOptions<'db>
impl<'db> Sync for EncodeOptions<'db>
impl<'db> Unpin for EncodeOptions<'db>
impl<'db> UnwindSafe for EncodeOptions<'db>
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)