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: SystemFunctionMetadataNotationThe 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 (const: unstable) · 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§fn default() -> SystemFunctionMetadata
fn default() -> SystemFunctionMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemFunctionMetadata
impl<'de> Deserialize<'de> for SystemFunctionMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemFunctionMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemFunctionMetadata, <__D as Deserializer<'de>>::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) -> SystemFunctionMetadata
fn from(value: SystemFunctionMetadata) -> SystemFunctionMetadata
Converts to this type from the input type.
Source§impl PartialEq for SystemFunctionMetadata
impl PartialEq for SystemFunctionMetadata
Source§impl Serialize for SystemFunctionMetadata
impl Serialize for SystemFunctionMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq 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<SystemFunctionMetadata, ConversionError>
fn try_from( value: SystemFunctionMetadata, ) -> Result<SystemFunctionMetadata, 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 UnsafeUnpin 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