DialectFunction

Struct DialectFunction 

Source
pub struct DialectFunction {
    pub name: String,
    pub required_options: Map<String, Value>,
    pub source: String,
    pub supported_impls: Vec<String>,
    pub system_metadata: Option<SystemFunctionMetadata>,
    pub variadic: Option<DialectFunctionVariadic>,
}
Expand description

DialectFunction

JSON schema
{
 "type": "object",
 "required": [
   "name",
   "source",
   "supported_impls"
 ],
 "properties": {
   "name": {
     "description": "The name of the function as declared in the extension it is defined in.\n",
     "type": "string"
   },
   "required_options": {
     "description": "Function-specific options that must be supported by the dialect.  These are the exact list of options that must be used.  If no options are listed here, no options must be present.\n",
     "type": "object"
   },
   "source": {
     "description": "Dependency (alias) in which the function is declared.",
     "type": "string"
   },
   "supported_impls": {
     "description": "List of one or more implementations supported by this function. Use argument signatures to identify the implementations.\n",
     "type": "array",
     "items": {
       "type": "string"
     },
     "minItems": 1
   },
   "system_metadata": {
     "description": "system specific metadata for the function",
     "type": "object",
     "$ref": "#/definitions/system_function_metadata"
   },
   "variadic": {
     "description": "If present, indicates the function accepts a variable number of arguments. Specifies the minimum and/or maximum number of arguments allowed.\n",
     "type": "object",
     "properties": {
       "max": {
         "description": "Maximum number of arguments allowed",
         "type": "integer",
         "minimum": 1.0
       },
       "min": {
         "description": "Minimum number of arguments required",
         "type": "integer",
         "minimum": 1.0
       }
     },
     "additionalProperties": false
   }
 },
 "additionalProperties": false
}

Fields§

§name: String

The name of the function as declared in the extension it is defined in.

§required_options: Map<String, Value>

Function-specific options that must be supported by the dialect. These are the exact list of options that must be used. If no options are listed here, no options must be present.

§source: String

Dependency (alias) in which the function is declared.

§supported_impls: Vec<String>

List of one or more implementations supported by this function. Use argument signatures to identify the implementations.

§system_metadata: Option<SystemFunctionMetadata>

system specific metadata for the function

§variadic: Option<DialectFunctionVariadic>

Implementations§

Trait Implementations§

Source§

impl Clone for DialectFunction

Source§

fn clone(&self) -> DialectFunction

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DialectFunction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DialectFunction

Source§

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<&DialectFunction> for DialectFunction

Source§

fn from(value: &DialectFunction) -> Self

Converts to this type from the input type.
Source§

impl From<DialectFunction> for DialectFunction

Source§

fn from(value: DialectFunction) -> Self

Converts to this type from the input type.
Source§

impl Serialize for DialectFunction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<DialectFunction> for DialectFunction

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: DialectFunction) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,