pub struct InjectedField {
pub name: FieldName,
pub value: InjectedValue,
}Expand description
A field the proxy injects into every ingested document (and strips on read).
The field name is chosen by the implementer (per the requirement that the
SPI decides injected field names). The value is computed per-document from
InjectedValue.
Fields§
§name: FieldNameThe name of the field to inject.
value: InjectedValueHow to compute the field’s value.
Implementations§
Source§impl InjectedField
impl InjectedField
Sourcepub fn new(name: FieldName, value: InjectedValue) -> Self
pub fn new(name: FieldName, value: InjectedValue) -> Self
Constructs an injected field.
Trait Implementations§
Source§impl Clone for InjectedField
impl Clone for InjectedField
Source§fn clone(&self) -> InjectedField
fn clone(&self) -> InjectedField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InjectedField
impl Debug for InjectedField
impl Eq for InjectedField
Source§impl PartialEq for InjectedField
impl PartialEq for InjectedField
Source§fn eq(&self, other: &InjectedField) -> bool
fn eq(&self, other: &InjectedField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InjectedField
Auto Trait Implementations§
impl Freeze for InjectedField
impl RefUnwindSafe for InjectedField
impl Send for InjectedField
impl Sync for InjectedField
impl Unpin for InjectedField
impl UnsafeUnpin for InjectedField
impl UnwindSafe for InjectedField
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