Skip to main content

Preview

Struct Preview 

Source
pub struct Preview {
    pub name: String,
    pub warehouse: String,
    pub warehouse_id: String,
    pub data: Option<Result<TableData, String>>,
    pub scroll: usize,
    pub col: usize,
    pub filter: String,
    pub filter_entry: bool,
    pub record: bool,
    pub rscroll: u16,
}
Expand description

Full-screen sample-data view for a Unity Catalog table or view.

Fields§

§name: String§warehouse: String

Display name and id of the warehouse running the query.

§warehouse_id: String§data: Option<Result<TableData, String>>

None while the query runs; then rows or an error.

§scroll: usize

Top visible row in the grid; the inspected row in record view.

§col: usize

First visible column, as an index into the filtered column list.

§filter: String

Case-insensitive substring filter over column names — the way through a 500-column table.

§filter_entry: bool§record: bool

Transposed view: one row, fields stacked vertically.

§rscroll: u16

Field scroll within the record view.

Implementations§

Source§

impl Preview

Source

pub fn visible_cols(&self) -> Vec<usize>

Indices of columns whose name matches the filter (all when empty).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.