pub struct ScalarFunction {
pub description: Option<String>,
pub impls: Vec<ScalarFunctionImplsItem>,
pub name: String,
}
Expand description
ScalarFunction
JSON schema
{
"type": "object",
"required": [
"impls",
"name"
],
"properties": {
"description": {
"type": "string"
},
"impls": {
"type": "array",
"items": {
"type": "object",
"required": [
"return"
],
"properties": {
"args": {
"$ref": "#/$defs/arguments"
},
"deterministic": {
"$ref": "#/$defs/deterministic"
},
"implementation": {
"$ref": "#/$defs/implementation"
},
"nullability": {
"$ref": "#/$defs/nullabilityHandling"
},
"options": {
"$ref": "#/$defs/options"
},
"return": {
"$ref": "#/$defs/returnValue"
},
"sessionDependent": {
"$ref": "#/$defs/sessionDependent"
},
"variadic": {
"$ref": "#/$defs/variadicBehavior"
}
},
"additionalProperties": false
},
"minItems": 1
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}
Fields§
§description: Option<String>
§impls: Vec<ScalarFunctionImplsItem>
§name: String
Implementations§
Source§impl ScalarFunction
impl ScalarFunction
pub fn builder() -> ScalarFunction
Trait Implementations§
Source§impl Clone for ScalarFunction
impl Clone for ScalarFunction
Source§fn clone(&self) -> ScalarFunction
fn clone(&self) -> ScalarFunction
Returns a copy 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 ScalarFunction
impl Debug for ScalarFunction
Source§impl<'de> Deserialize<'de> for ScalarFunction
impl<'de> Deserialize<'de> for ScalarFunction
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<&ScalarFunction> for ScalarFunction
impl From<&ScalarFunction> for ScalarFunction
Source§fn from(value: &ScalarFunction) -> Self
fn from(value: &ScalarFunction) -> Self
Converts to this type from the input type.
Source§impl From<ScalarFunction> for ScalarFunction
impl From<ScalarFunction> for ScalarFunction
Source§fn from(value: ScalarFunction) -> Self
fn from(value: ScalarFunction) -> Self
Converts to this type from the input type.
Source§impl Serialize for ScalarFunction
impl Serialize for ScalarFunction
Source§impl TryFrom<ScalarFunction> for ScalarFunction
impl TryFrom<ScalarFunction> for ScalarFunction
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ScalarFunction) -> Result<Self, ConversionError>
fn try_from(value: ScalarFunction) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ScalarFunction
impl RefUnwindSafe for ScalarFunction
impl Send for ScalarFunction
impl Sync for ScalarFunction
impl Unpin for ScalarFunction
impl UnwindSafe for ScalarFunction
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