pub enum ParamTypes {
Of(DataType),
Any(Vec<DataType>),
}
Expand description
Represents the type for a parameter to a JMESPath super::Function
.
Variants§
Of(DataType)
Represents a parameter of a given crate::functions::DataType
.
§Example
use jmespath_community as jmespath;
use jmespath::functions::DataType;
use jmespath::functions::Parameter::*;
use jmespath::functions::ParamTypes::*;
let data_types = Optional(Of(DataType::String));
Any(Vec<DataType>)
Represents a parameter whose crate::functions::DataType
is taken from a list.
§Example
use jmespath_community as jmespath;
use jmespath::functions::DataType;
use jmespath::functions::Parameter::*;
use jmespath::functions::ParamTypes::*;
let data_types = Required(Any(vec![DataType::Array, DataType::Object, DataType::String]));
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamTypes
impl RefUnwindSafe for ParamTypes
impl Send for ParamTypes
impl Sync for ParamTypes
impl Unpin for ParamTypes
impl UnwindSafe for ParamTypes
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