pub struct CastExpression {
pub expression: Value,
pub failure_options: Option<Vec<CastExpressionFailureOptionsItem>>,
pub metadata: Map<String, Value>,
}Expand description
CastExpression
JSON schema
{
"type": "object",
"required": [
"expression"
],
"properties": {
"expression": {
"const": "CAST"
},
"failure_options": {
"description": "The permissible failure options for cast operations.",
"type": "array",
"items": {
"enum": [
"RETURN_NULL",
"THROW_EXCEPTION"
]
},
"uniqueItems": true
},
"metadata": {
"description": "Arbitrary data created by the dialect author.",
"type": "object"
}
},
"additionalProperties": false
}Fields§
§expression: Value§failure_options: Option<Vec<CastExpressionFailureOptionsItem>>The permissible failure options for cast operations.
metadata: Map<String, Value>Arbitrary data created by the dialect author.
Implementations§
Source§impl CastExpression
impl CastExpression
pub fn builder() -> CastExpression
Trait Implementations§
Source§impl Clone for CastExpression
impl Clone for CastExpression
Source§fn clone(&self) -> CastExpression
fn clone(&self) -> CastExpression
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 CastExpression
impl Debug for CastExpression
Source§impl<'de> Deserialize<'de> for CastExpression
impl<'de> Deserialize<'de> for CastExpression
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CastExpression, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CastExpression, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CastExpression> for DialectSupportedExpressionsItem
impl From<CastExpression> for DialectSupportedExpressionsItem
Source§fn from(value: CastExpression) -> DialectSupportedExpressionsItem
fn from(value: CastExpression) -> DialectSupportedExpressionsItem
Converts to this type from the input type.
Source§impl From<CastExpression> for CastExpression
impl From<CastExpression> for CastExpression
Source§fn from(value: CastExpression) -> CastExpression
fn from(value: CastExpression) -> CastExpression
Converts to this type from the input type.
Source§impl PartialEq for CastExpression
impl PartialEq for CastExpression
Source§impl Serialize for CastExpression
impl Serialize for CastExpression
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 CastExpression
Source§impl TryFrom<CastExpression> for CastExpression
impl TryFrom<CastExpression> for CastExpression
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CastExpression) -> Result<CastExpression, ConversionError>
fn try_from(value: CastExpression) -> Result<CastExpression, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CastExpression
impl RefUnwindSafe for CastExpression
impl Send for CastExpression
impl Sync for CastExpression
impl Unpin for CastExpression
impl UnsafeUnpin for CastExpression
impl UnwindSafe for CastExpression
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