pub enum DataContainer {
SingleObject(SingleObject, SchemaSet),
}Expand description
Provides a read/write view into a DataSet or SingleObject. A schema can be used to write into both forms.
Variants§
SingleObject(SingleObject, SchemaSet)
Implementations§
Source§impl DataContainer
impl DataContainer
pub fn into_inner(self) -> SingleObject
pub fn from_single_object( single_object: SingleObject, schema_set: SchemaSet, ) -> Self
pub fn read<'a>(&'a self) -> DataContainerRef<'a>
pub fn to_mut(&mut self) -> DataContainerRefMut<'_>
pub fn resolve_property(&self, path: impl AsRef<str>) -> DataSetResult<&Value>
pub fn get_null_override( &self, path: impl AsRef<str>, ) -> DataSetResult<NullOverride>
pub fn set_null_override( &mut self, path: impl AsRef<str>, null_override: NullOverride, ) -> DataSetResult<()>
pub fn resolve_null_override( &self, path: impl AsRef<str>, ) -> DataSetResult<NullOverride>
pub fn resolve_dynamic_array_entries( &self, path: impl AsRef<str>, ) -> DataSetResult<Box<[Uuid]>>
pub fn resolve_map_entries( &self, path: impl AsRef<str>, ) -> DataSetResult<Box<[Uuid]>>
pub fn set_property_override( &mut self, path: impl AsRef<str>, value: Option<Value>, ) -> DataSetResult<Option<Value>>
pub fn add_dynamic_array_entry( &mut self, path: impl AsRef<str>, ) -> DataSetResult<Uuid>
pub fn add_map_entry(&mut self, path: impl AsRef<str>) -> DataSetResult<Uuid>
pub fn remove_dynamic_array_entry( &mut self, path: impl AsRef<str>, element_id: Uuid, ) -> DataSetResult<bool>
pub fn remove_map_entry( &mut self, path: impl AsRef<str>, element_id: Uuid, ) -> DataSetResult<bool>
pub fn get_override_behavior( &self, path: impl AsRef<str>, ) -> DataSetResult<OverrideBehavior>
pub fn set_override_behavior( &mut self, _path: impl AsRef<str>, _behavior: OverrideBehavior, ) -> DataSetResult<()>
Auto Trait Implementations§
impl Freeze for DataContainer
impl RefUnwindSafe for DataContainer
impl Send for DataContainer
impl Sync for DataContainer
impl Unpin for DataContainer
impl UnsafeUnpin for DataContainer
impl UnwindSafe for DataContainer
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