pub enum PortableMappingSource {
FromSource {
path: PortableFieldPath,
default: Option<Value>,
transform: Option<PortableTransformation>,
},
Constant(Value),
Computed {
inputs: Vec<PortableFieldPath>,
function: PortableComputeFunction,
},
FromState {
path: String,
},
AsEvent {
fields: Vec<PortableMappingSource>,
},
WholeSource,
AsCapture {
field_transforms: BTreeMap<String, PortableTransformation>,
},
FromContext {
field: String,
},
}Variants§
FromSource
Constant(Value)
Computed
FromState
AsEvent
Fields
§
fields: Vec<PortableMappingSource>WholeSource
AsCapture
Fields
§
field_transforms: BTreeMap<String, PortableTransformation>FromContext
Trait Implementations§
Source§impl Clone for PortableMappingSource
impl Clone for PortableMappingSource
Source§fn clone(&self) -> PortableMappingSource
fn clone(&self) -> PortableMappingSource
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 PortableMappingSource
impl Debug for PortableMappingSource
Source§impl<'de> Deserialize<'de> for PortableMappingSource
impl<'de> Deserialize<'de> for PortableMappingSource
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
Source§impl PartialEq for PortableMappingSource
impl PartialEq for PortableMappingSource
Source§impl Serialize for PortableMappingSource
impl Serialize for PortableMappingSource
impl StructuralPartialEq for PortableMappingSource
Auto Trait Implementations§
impl Freeze for PortableMappingSource
impl RefUnwindSafe for PortableMappingSource
impl Send for PortableMappingSource
impl Sync for PortableMappingSource
impl Unpin for PortableMappingSource
impl UnsafeUnpin for PortableMappingSource
impl UnwindSafe for PortableMappingSource
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