pub enum TupleRepr {
Array,
NumberIndexedObject,
Error,
}Expand description
How to represent tuples in a data model that does not support tuples. Corresponds to the $tuple-repr extension.
Variants§
Array
Represent tuple as array. e.g. “[1,2,3]”.
NumberIndexedObject
Represent tuple as number indexed object. e.g. {0: 1, 1: 2, 2: 3}. {"0": 1, "1": 2, "2": 3} if NumberKeyRepr is String.
Error
Error on conversion.
Trait Implementations§
impl StructuralPartialEq for TupleRepr
Auto Trait Implementations§
impl Freeze for TupleRepr
impl RefUnwindSafe for TupleRepr
impl Send for TupleRepr
impl Sync for TupleRepr
impl Unpin for TupleRepr
impl UnwindSafe for TupleRepr
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