pub struct SwitchExpression {
pub expression: Value,
pub metadata: Map<String, Value>,
}Expand description
SwitchExpression
Fields§
§expression: Value§metadata: Map<String, Value>Arbitrary data created by the dialect author.
Implementations§
Source§impl SwitchExpression
impl SwitchExpression
pub fn builder() -> SwitchExpression
Trait Implementations§
Source§impl Clone for SwitchExpression
impl Clone for SwitchExpression
Source§fn clone(&self) -> SwitchExpression
fn clone(&self) -> SwitchExpression
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 SwitchExpression
impl Debug for SwitchExpression
Source§impl<'de> Deserialize<'de> for SwitchExpression
impl<'de> Deserialize<'de> for SwitchExpression
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SwitchExpression, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SwitchExpression, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SwitchExpression> for DialectSupportedExpressionsItem
impl From<SwitchExpression> for DialectSupportedExpressionsItem
Source§fn from(value: SwitchExpression) -> DialectSupportedExpressionsItem
fn from(value: SwitchExpression) -> DialectSupportedExpressionsItem
Converts to this type from the input type.
Source§impl From<SwitchExpression> for SwitchExpression
impl From<SwitchExpression> for SwitchExpression
Source§fn from(value: SwitchExpression) -> SwitchExpression
fn from(value: SwitchExpression) -> SwitchExpression
Converts to this type from the input type.
Source§impl PartialEq for SwitchExpression
impl PartialEq for SwitchExpression
Source§impl Serialize for SwitchExpression
impl Serialize for SwitchExpression
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 SwitchExpression
Source§impl TryFrom<SwitchExpression> for SwitchExpression
impl TryFrom<SwitchExpression> for SwitchExpression
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SwitchExpression,
) -> Result<SwitchExpression, ConversionError>
fn try_from( value: SwitchExpression, ) -> Result<SwitchExpression, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for SwitchExpression
impl Freeze for SwitchExpressionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for SwitchExpression
impl RefUnwindSafe for SwitchExpression
impl Send for SwitchExpression
impl Sync for SwitchExpression
impl Unpin for SwitchExpression
impl UnsafeUnpin for SwitchExpressionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for SwitchExpression
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