pub enum DescribeVerdict {
Ok {
expression_schema: HashMap<String, ColumnType>,
view_schema: HashMap<String, ColumnType>,
},
Expressions {
expression_schema: HashMap<String, ColumnType>,
expression_errors: HashMap<String, ExpressionError>,
},
Config {
config_error: String,
},
}Expand description
The wire/serde shape of a Table::describe verdict, as exchanged with
JavaScript and Python (both client results and virtual-server handler
returns): exactly one of the three arms, discriminated by its keys.
Variants§
Ok
Expressions
Fields
§
expression_schema: HashMap<String, ColumnType>§
expression_errors: HashMap<String, ExpressionError>Config
Trait Implementations§
Source§impl Clone for DescribeVerdict
impl Clone for DescribeVerdict
Source§impl Debug for DescribeVerdict
impl Debug for DescribeVerdict
Source§impl<'de> Deserialize<'de> for DescribeVerdict
impl<'de> Deserialize<'de> for DescribeVerdict
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<Result<Description, DescribeError>> for DescribeVerdict
impl From<Result<Description, DescribeError>> for DescribeVerdict
Source§fn from(value: Result<Description, DescribeError>) -> Self
fn from(value: Result<Description, DescribeError>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DescribeVerdict
impl PartialEq for DescribeVerdict
Source§impl Serialize for DescribeVerdict
impl Serialize for DescribeVerdict
impl StructuralPartialEq for DescribeVerdict
Source§impl TryFrom<DescribeVerdict> for Result<Description, DescribeError>
impl TryFrom<DescribeVerdict> for Result<Description, DescribeError>
Source§fn try_from(value: DescribeVerdict) -> Result<Self, ClientError>
fn try_from(value: DescribeVerdict) -> Result<Self, ClientError>
Fails only for the unrepresentable Expressions arm with no errors.
Source§type Error = ClientError
type Error = ClientError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DescribeVerdict
impl RefUnwindSafe for DescribeVerdict
impl Send for DescribeVerdict
impl Sync for DescribeVerdict
impl Unpin for DescribeVerdict
impl UnsafeUnpin for DescribeVerdict
impl UnwindSafe for DescribeVerdict
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more