pub struct FunctionSpecification {
pub name: String,
pub documentation: String,
pub inputs: Vec<FunctionInput>,
pub output: FunctionOutput,
pub example: String,
pub snippet: String,
pub runner: fn(&FunctionSpecification, &AuthorizationContext, &Vec<Value>) -> Result<Value, Diagnostic>,
pub checker: fn(&FunctionSpecification, &AuthorizationContext, &Vec<Type>) -> Result<Type, Diagnostic>,
}Fields§
§name: String§documentation: String§inputs: Vec<FunctionInput>§output: FunctionOutput§example: String§snippet: String§runner: fn(&FunctionSpecification, &AuthorizationContext, &Vec<Value>) -> Result<Value, Diagnostic>§checker: fn(&FunctionSpecification, &AuthorizationContext, &Vec<Type>) -> Result<Type, Diagnostic>Trait Implementations§
Source§impl Clone for FunctionSpecification
impl Clone for FunctionSpecification
Source§fn clone(&self) -> FunctionSpecification
fn clone(&self) -> FunctionSpecification
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 moreAuto Trait Implementations§
impl Freeze for FunctionSpecification
impl RefUnwindSafe for FunctionSpecification
impl Send for FunctionSpecification
impl Sync for FunctionSpecification
impl Unpin for FunctionSpecification
impl UnwindSafe for FunctionSpecification
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