pub struct Def {
pub name: String,
pub args: Vec<Arg>,
pub defs: Vec<Self>,
pub body: Spanned<Filter>,
}Expand description
A definition, such as def map(f): [.[] | f];.
Fields§
§name: StringName of the filter, e.g. map
args: Vec<Arg>Arguments of the filter, e.g. ["f"]
defs: Vec<Self>Definitions at the top of the filter
body: Spanned<Filter>Body of the filter, e.g. [.[] | f.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Def
impl<'de> Deserialize<'de> for Def
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