pub struct JsTable { /* private fields */ }Expand description
JavaScript-friendly table reference.
Implementations§
Source§impl JsTable
impl JsTable
Sourcepub fn column_names(&self) -> Array
pub fn column_names(&self) -> Array
Returns the column names.
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Returns the number of columns.
Sourcepub fn get_column_type(&self, name: &str) -> Option<JsDataType>
pub fn get_column_type(&self, name: &str) -> Option<JsDataType>
Returns the column data type.
Sourcepub fn is_column_nullable(&self, name: &str) -> bool
pub fn is_column_nullable(&self, name: &str) -> bool
Returns whether a column is nullable.
Sourcepub fn primary_key_columns(&self) -> Array
pub fn primary_key_columns(&self) -> Array
Returns the primary key column names.
Trait Implementations§
Source§impl FromWasmAbi for JsTable
impl FromWasmAbi for JsTable
Source§impl IntoWasmAbi for JsTable
impl IntoWasmAbi for JsTable
Source§impl LongRefFromWasmAbi for JsTable
impl LongRefFromWasmAbi for JsTable
Source§impl OptionFromWasmAbi for JsTable
impl OptionFromWasmAbi for JsTable
Source§impl OptionIntoWasmAbi for JsTable
impl OptionIntoWasmAbi for JsTable
Source§impl RefFromWasmAbi for JsTable
impl RefFromWasmAbi for JsTable
Source§impl RefMutFromWasmAbi for JsTable
impl RefMutFromWasmAbi for JsTable
Source§impl TryFromJsValue for JsTable
impl TryFromJsValue for JsTable
Source§impl VectorFromWasmAbi for JsTable
impl VectorFromWasmAbi for JsTable
Source§impl VectorIntoWasmAbi for JsTable
impl VectorIntoWasmAbi for JsTable
impl SupportsConstructor for JsTable
impl SupportsInstanceProperty for JsTable
impl SupportsStaticProperty for JsTable
Auto Trait Implementations§
impl Freeze for JsTable
impl RefUnwindSafe for JsTable
impl Send for JsTable
impl Sync for JsTable
impl Unpin for JsTable
impl UnwindSafe for JsTable
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.