Trait infinitree::fields::Load [−][src]
pub trait Load {
fn load(
&mut self,
index: &Reader,
object: &mut dyn Reader,
transaction_list: Vec<(Digest, String, ObjectId)>
);
}
Expand description
Load all data from the index field into memory.
This trait is usually implemented on a type that also implements
Strategy
, and not on the field directly.
In addition, Load
has a blanket implementation for all types
that implement Query
, so very likely you never have to
manually implement this yourself.
Required methods
Execute a load action.
The index
and object
readers are provided to interact with
the indexes and the object pool, respectively.
transaction_list
can contain any list of transactions that
this loader should restore into memory.
Note that this is decidedly not a type safe way to interact
with a collection, and therefore it is recommended that
transaction_list
is prepared and sanitized for the field
that’s being restored.