Struct oneline_template::function_executor::FunctionSchema[][src]

pub struct FunctionSchema { /* fields omitted */ }

Contains information about function: function name, argument types.

Implementations

impl FunctionSchema[src]

pub fn new(function_name: impl Into<String>) -> FunctionSchema[src]

Creates function name.

Panics

Panics if function_name is empty.

pub fn with_argument(self, argument: FunctionArgument) -> Self[src]

Adds function argument.

pub fn get_function_name(&self) -> &String[src]

Returns function name.

pub fn get_arguments(&self) -> &[FunctionArgument][src]

Returns list of arguments.

Trait Implementations

impl Debug for FunctionSchema[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.