pub struct SystemFunctionMetadata {
pub name: Option<String>,
pub notation: SystemFunctionMetadataNotation,
}
Expand description
System specific metadata for use in mapping Substrait to and from Common metadata fields are defined for use across dialects. Individual dialects may include additional metadata to serve their purposes.
JSON schema
{
"description": "System specific metadata for use in mapping Substrait to and from Common metadata fields are defined for use across dialects. Individual dialects may include additional metadata to serve their purposes.\n",
"type": "object",
"properties": {
"name": {
"description": "The name for this function in the system modelled by the dialect. For example, \"+\" might be the system name for \"add\".\n",
"type": "string"
},
"notation": {
"description": "The notation used to invoke this function in the system modelled by the dialect. For example, a function with system_name \"+\" could be invoked as follow: * INFIX: \"a + b\" * POSTFIX: \"a b +\", * PREFIX: \"+ a b\" * FUNCTION: \"func(a, b)\"\n",
"default": "FUNCTION",
"type": "string",
"enum": [
"INFIX",
"POSTFIX",
"PREFIX",
"FUNCTION"
]
}
},
"additionalProperties": false
}
Fields§
§name: Option<String>
The name for this function in the system modelled by the dialect. For example, “+” might be the system name for “add”.
notation: SystemFunctionMetadataNotation
The notation used to invoke this function in the system modelled by the dialect. For example, a function with system_name “+” could be invoked as follow: * INFIX: “a + b” * POSTFIX: “a b +”, * PREFIX: “+ a b” * FUNCTION: “func(a, b)”
Implementations§
Source§impl SystemFunctionMetadata
impl SystemFunctionMetadata
pub fn builder() -> SystemFunctionMetadata
Trait Implementations§
Source§impl Clone for SystemFunctionMetadata
impl Clone for SystemFunctionMetadata
Source§fn clone(&self) -> SystemFunctionMetadata
fn clone(&self) -> SystemFunctionMetadata
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 SystemFunctionMetadata
impl Debug for SystemFunctionMetadata
Source§impl Default for SystemFunctionMetadata
impl Default for SystemFunctionMetadata
Source§impl<'de> Deserialize<'de> for SystemFunctionMetadata
impl<'de> Deserialize<'de> for SystemFunctionMetadata
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<&SystemFunctionMetadata> for SystemFunctionMetadata
impl From<&SystemFunctionMetadata> for SystemFunctionMetadata
Source§fn from(value: &SystemFunctionMetadata) -> Self
fn from(value: &SystemFunctionMetadata) -> Self
Converts to this type from the input type.
Source§impl From<SystemFunctionMetadata> for SystemFunctionMetadata
impl From<SystemFunctionMetadata> for SystemFunctionMetadata
Source§fn from(value: SystemFunctionMetadata) -> Self
fn from(value: SystemFunctionMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for SystemFunctionMetadata
impl Serialize for SystemFunctionMetadata
Source§impl TryFrom<SystemFunctionMetadata> for SystemFunctionMetadata
impl TryFrom<SystemFunctionMetadata> for SystemFunctionMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SystemFunctionMetadata) -> Result<Self, ConversionError>
fn try_from(value: SystemFunctionMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SystemFunctionMetadata
impl RefUnwindSafe for SystemFunctionMetadata
impl Send for SystemFunctionMetadata
impl Sync for SystemFunctionMetadata
impl Unpin for SystemFunctionMetadata
impl UnwindSafe for SystemFunctionMetadata
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