pub enum Keys {
One(Key),
PerItem(Vec<Key>),
}Expand description
What a node’s output is called: one name, or one per item.
The second is what a .mapped() node produces: with
one name per node, adding a document to a list of a thousand misses all
thousand; with one per item, the thousand hit and the new one runs.
Variants§
One(Key)
The output is one thing and has one name.
PerItem(Vec<Key>)
The output is a list, and each item is named on its own — in order, and as long as the list.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Keys
impl<'de> Deserialize<'de> for Keys
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Keys
impl StructuralPartialEq for Keys
Auto Trait Implementations§
impl Freeze for Keys
impl RefUnwindSafe for Keys
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnsafeUnpin for Keys
impl UnwindSafe for Keys
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