pub struct OatClient { /* private fields */ }Expand description
Main OatDB client
Implementations§
Source§impl OatClient
impl OatClient
Sourcepub async fn health_check(&self) -> Result<bool>
pub async fn health_check(&self) -> Result<bool>
Check if the server is healthy
Sourcepub async fn execute(&self, call: &FunctionCall) -> Result<JsonValue>
pub async fn execute(&self, call: &FunctionCall) -> Result<JsonValue>
Execute a single function call
Sourcepub async fn execute_many(
&self,
calls: &[&FunctionCall],
) -> Result<HashMap<String, JsonValue>>
pub async fn execute_many( &self, calls: &[&FunctionCall], ) -> Result<HashMap<String, JsonValue>>
Execute multiple function calls and return their results
Sourcepub fn debug_payload(&self, calls: &[&FunctionCall]) -> JsonValue
pub fn debug_payload(&self, calls: &[&FunctionCall]) -> JsonValue
Get the debug payload without executing (useful for debugging)
Auto Trait Implementations§
impl Freeze for OatClient
impl !RefUnwindSafe for OatClient
impl Send for OatClient
impl Sync for OatClient
impl Unpin for OatClient
impl UnsafeUnpin for OatClient
impl !UnwindSafe for OatClient
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