pub struct Table(/* private fields */);Implementations§
Source§impl Table
impl Table
pub async fn get_index(&self) -> Option<String>
pub async fn get_client(&self) -> Client
pub async fn get_limit(&self) -> Option<u32>
pub async fn clear(&self) -> ApiResult<()>
pub async fn delete(&self) -> ApiResult<()>
pub async fn size(&self) -> ApiResult<f64>
pub async fn schema(&self) -> ApiResult<JsValue>
pub async fn columns(&self) -> ApiResult<JsValue>
pub async fn make_port(&self) -> ApiResult<i32>
pub async fn on_delete(&self, on_delete: Function) -> ApiResult<u32>
pub fn remove_delete(&self, callback_id: u32) -> ApiFuture<()>
pub async fn remove( &self, value: &JsValue, options: Option<JsUpdateOptions>, ) -> ApiResult<()>
pub async fn replace( &self, input: &JsValue, options: Option<JsUpdateOptions>, ) -> ApiResult<()>
pub async fn update( &self, input: &JsTableInitData, options: Option<JsUpdateOptions>, ) -> ApiResult<()>
pub async fn view(&self, config: Option<JsViewConfig>) -> ApiResult<View>
pub async fn validate_expressions(&self, exprs: &JsValue) -> ApiResult<JsValue>
Trait Implementations§
Source§impl FromWasmAbi for Table
impl FromWasmAbi for Table
Source§impl IntoWasmAbi for Table
impl IntoWasmAbi for Table
Source§impl LongRefFromWasmAbi for Table
impl LongRefFromWasmAbi for Table
Source§impl OptionFromWasmAbi for Table
impl OptionFromWasmAbi for Table
Source§impl OptionIntoWasmAbi for Table
impl OptionIntoWasmAbi for Table
Source§impl RefFromWasmAbi for Table
impl RefFromWasmAbi for Table
Source§impl RefMutFromWasmAbi for Table
impl RefMutFromWasmAbi for Table
Source§impl TryFromJsValue for Table
impl TryFromJsValue for Table
Source§impl VectorFromWasmAbi for Table
impl VectorFromWasmAbi for Table
Source§impl VectorIntoWasmAbi for Table
impl VectorIntoWasmAbi for Table
Auto Trait Implementations§
impl Freeze for Table
impl !RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl !UnwindSafe for Table
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§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.