pub struct FunctionDetail {
pub name: String,
pub category: String,
pub description: String,
pub signature: String,
pub example: String,
pub is_standard: bool,
pub jep: Option<String>,
pub aliases: Vec<String>,
}Expand description
Detailed information about a JMESPath function.
This struct provides a serializable representation of function metadata, suitable for API responses, documentation generation, and introspection tools.
§Example
use jpx_engine::JpxEngine;
let engine = JpxEngine::new();
let info = engine.describe_function("upper").unwrap();
println!("Function: {}", info.name);
println!("Category: {}", info.category);
println!("Signature: {}", info.signature);
println!("Example: {}", info.example);Fields§
§name: StringFunction name (e.g., “upper”, “sum”, “now”)
category: StringCategory name (e.g., “String”, “Math”, “Datetime”)
description: StringHuman-readable description of what the function does
signature: StringFunction signature showing parameter types (e.g., “string -> string”)
example: StringExample usage demonstrating the function
is_standard: boolWhether this is a standard JMESPath function (vs extension)
jep: Option<String>JMESPath Enhancement Proposal number, if applicable
aliases: Vec<String>Alternative names for this function
Trait Implementations§
Source§impl Clone for FunctionDetail
impl Clone for FunctionDetail
Source§fn clone(&self) -> FunctionDetail
fn clone(&self) -> FunctionDetail
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 FunctionDetail
impl Debug for FunctionDetail
Source§impl<'de> Deserialize<'de> for FunctionDetail
impl<'de> Deserialize<'de> for FunctionDetail
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 From<&FunctionInfo> for FunctionDetail
impl From<&FunctionInfo> for FunctionDetail
Source§fn from(info: &FunctionInfo) -> Self
fn from(info: &FunctionInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionDetail
impl RefUnwindSafe for FunctionDetail
impl Send for FunctionDetail
impl Sync for FunctionDetail
impl Unpin for FunctionDetail
impl UnwindSafe for FunctionDetail
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more