pub struct CastExpression {
pub expression: Value,
pub failure_options: Option<Vec<CastExpressionFailureOptionsItem>>,
}
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
}
},
"additionalProperties": false
}
Fields§
§expression: Value
§failure_options: Option<Vec<CastExpressionFailureOptionsItem>>
The permissible failure options for cast operations.
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 · 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<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<&CastExpression> for CastExpression
impl From<&CastExpression> for CastExpression
Source§fn from(value: &CastExpression) -> Self
fn from(value: &CastExpression) -> Self
Converts to this type from the input type.
Source§impl From<CastExpression> for CastExpression
impl From<CastExpression> for CastExpression
Source§fn from(value: CastExpression) -> Self
fn from(value: CastExpression) -> Self
Converts to this type from the input type.
Source§impl From<CastExpression> for DialectSupportedExpressionsItem
impl From<CastExpression> for DialectSupportedExpressionsItem
Source§fn from(value: CastExpression) -> Self
fn from(value: CastExpression) -> Self
Converts to this type from the input type.
Source§impl Serialize for CastExpression
impl Serialize 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<Self, ConversionError>
fn try_from(value: CastExpression) -> Result<Self, 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 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