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§
Source§impl DialectFunction
impl DialectFunction
pub fn builder() -> DialectFunction
Trait Implementations§
Source§impl Clone for DialectFunction
impl Clone for DialectFunction
Source§fn clone(&self) -> DialectFunction
fn clone(&self) -> DialectFunction
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 DialectFunction
impl Debug for DialectFunction
Source§impl<'de> Deserialize<'de> for DialectFunction
impl<'de> Deserialize<'de> for DialectFunction
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<&DialectFunction> for DialectFunction
impl From<&DialectFunction> for DialectFunction
Source§fn from(value: &DialectFunction) -> Self
fn from(value: &DialectFunction) -> Self
Converts to this type from the input type.
Source§impl From<DialectFunction> for DialectFunction
impl From<DialectFunction> for DialectFunction
Source§fn from(value: DialectFunction) -> Self
fn from(value: DialectFunction) -> Self
Converts to this type from the input type.
Source§impl Serialize for DialectFunction
impl Serialize for DialectFunction
Source§impl TryFrom<DialectFunction> for DialectFunction
impl TryFrom<DialectFunction> for DialectFunction
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DialectFunction) -> Result<Self, ConversionError>
fn try_from(value: DialectFunction) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DialectFunction
impl RefUnwindSafe for DialectFunction
impl Send for DialectFunction
impl Sync for DialectFunction
impl Unpin for DialectFunction
impl UnwindSafe for DialectFunction
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