pub struct Recomposer;Expand description
Rebuild full or partial JSON documents from PackedDoc.
Implementations§
Source§impl Recomposer
impl Recomposer
Sourcepub fn recompose(
packed: &PackedDoc,
registry: &IdRegistry,
dictionary: &ValueDictionary,
collection_id: CollectionId,
) -> Result<Value, RecomposeError>
pub fn recompose( packed: &PackedDoc, registry: &IdRegistry, dictionary: &ValueDictionary, collection_id: CollectionId, ) -> Result<Value, RecomposeError>
Reconstruct a full JSON document.
Sourcepub fn project(
packed: &PackedDoc,
field_ids: &[FieldId],
registry: &IdRegistry,
dictionary: &ValueDictionary,
collection_id: CollectionId,
) -> Result<Value, RecomposeError>
pub fn project( packed: &PackedDoc, field_ids: &[FieldId], registry: &IdRegistry, dictionary: &ValueDictionary, collection_id: CollectionId, ) -> Result<Value, RecomposeError>
Reconstruct only selected fields by field ID.
Auto Trait Implementations§
impl Freeze for Recomposer
impl RefUnwindSafe for Recomposer
impl Send for Recomposer
impl Sync for Recomposer
impl Unpin for Recomposer
impl UnsafeUnpin for Recomposer
impl UnwindSafe for Recomposer
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