pub struct TypedRpcBuilder<T> { /* private fields */ }Expand description
Typed RPC builder that deserializes results into T.
Implementations§
Source§impl<T> TypedRpcBuilder<T>where
T: DeserializeOwned + Send,
impl<T> TypedRpcBuilder<T>where
T: DeserializeOwned + Send,
pub fn new( backend: QueryBackend, schema: String, function: String, args: Value, ) -> Result<TypedRpcBuilder<T>, SupabaseError>
Sourcepub fn rollback(self) -> TypedRpcBuilder<T>
pub fn rollback(self) -> TypedRpcBuilder<T>
Run the RPC call inside a transaction that is rolled back.
Source§impl<T> TypedRpcBuilder<T>where
T: DeserializeOwned + Send,
impl<T> TypedRpcBuilder<T>where
T: DeserializeOwned + Send,
Sourcepub async fn execute(self) -> SupabaseResponse<T>
pub async fn execute(self) -> SupabaseResponse<T>
Execute the typed RPC call.
Auto Trait Implementations§
impl<T> Freeze for TypedRpcBuilder<T>
impl<T> !RefUnwindSafe for TypedRpcBuilder<T>
impl<T> Send for TypedRpcBuilder<T>where
T: Send,
impl<T> Sync for TypedRpcBuilder<T>where
T: Sync,
impl<T> Unpin for TypedRpcBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for TypedRpcBuilder<T>
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