pub struct FunctionExample {
pub sql: String,
pub description: String,
pub expected_output: Option<String>,
}Expand description
One examples entry of FunctionInfo.
Fields§
§sql: String§description: String§expected_output: Option<String>Trait Implementations§
Source§impl Clone for FunctionExample
impl Clone for FunctionExample
Source§fn clone(&self) -> FunctionExample
fn clone(&self) -> FunctionExample
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 FunctionExample
impl Debug for FunctionExample
Source§impl VgiArrow for FunctionExample
impl VgiArrow for FunctionExample
Source§fn arrow_data_type() -> DataType
fn arrow_data_type() -> DataType
The Arrow
DataType carrying values of this Rust type.Source§fn describe_name() -> String
fn describe_name() -> String
Wire-format type name surfaced via
__describe__ metadata.
Mirrors Python: "str", "int", "list[int]", "int | None".Source§fn read(arr: &dyn Array, idx: usize) -> Result<Self>
fn read(arr: &dyn Array, idx: usize) -> Result<Self>
Pull this value out of
arr at row idx. Errors with a
RpcError::type_error if arr’s concrete type doesn’t match
Self::arrow_data_type().Source§fn build_singleton(value: Self) -> Result<ArrayRef>
fn build_singleton(value: Self) -> Result<ArrayRef>
Build a 1-row
ArrayRef containing value.Auto Trait Implementations§
impl Freeze for FunctionExample
impl RefUnwindSafe for FunctionExample
impl Send for FunctionExample
impl Sync for FunctionExample
impl Unpin for FunctionExample
impl UnsafeUnpin for FunctionExample
impl UnwindSafe for FunctionExample
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