pub enum FunctionConfig {
Map {
name: MapName,
input: MapConfig,
},
Validation {
name: ValidationName,
input: ValidationConfig,
},
Custom {
name: String,
input: Value,
},
}
Expand description
Enum containing all possible function configurations Uses internally tagged representation for clean deserialization
Variants§
Implementations§
Source§impl FunctionConfig
impl FunctionConfig
Sourcepub fn function_name(&self) -> &str
pub fn function_name(&self) -> &str
Get the function name for this configuration
Trait Implementations§
Source§impl Clone for FunctionConfig
impl Clone for FunctionConfig
Source§fn clone(&self) -> FunctionConfig
fn clone(&self) -> FunctionConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionConfig
impl Debug for FunctionConfig
Source§impl<'de> Deserialize<'de> for FunctionConfig
impl<'de> Deserialize<'de> for FunctionConfig
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
Auto Trait Implementations§
impl Freeze for FunctionConfig
impl RefUnwindSafe for FunctionConfig
impl Send for FunctionConfig
impl Sync for FunctionConfig
impl Unpin for FunctionConfig
impl UnwindSafe for FunctionConfig
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