pub struct RuntimeClient { /* private fields */ }Implementations§
Source§impl RuntimeClient
impl RuntimeClient
pub fn new(base_url: &str) -> Self
pub fn set_token(&self, token: Option<String>)
pub fn token(&self) -> Option<String>
pub async fn is_available(&self) -> bool
pub async fn status(&self) -> Result<OsStatus, ClientError>
pub async fn install_app( &self, manifest: &AppManifest, ) -> Result<String, ClientError>
pub async fn list_apps(&self) -> Result<Vec<InstalledApp>, ClientError>
pub async fn uninstall_app(&self, app_id: &str) -> Result<(), ClientError>
pub async fn list_records( &self, app_id: &str, entity: &str, ) -> Result<Vec<JsonValue>, ClientError>
pub async fn create_record( &self, app_id: &str, entity: &str, data: &JsonValue, ) -> Result<JsonValue, ClientError>
pub async fn bulk_create_records( &self, app_id: &str, entity: &str, data: &[JsonValue], ) -> Result<Vec<JsonValue>, ClientError>
pub async fn get_record( &self, app_id: &str, entity: &str, id: &str, ) -> Result<JsonValue, ClientError>
pub async fn update_record( &self, app_id: &str, entity: &str, id: &str, data: &JsonValue, ) -> Result<JsonValue, ClientError>
pub async fn delete_record( &self, app_id: &str, entity: &str, id: &str, ) -> Result<(), ClientError>
pub async fn verify_schema( &self, manifest: &AppManifest, ) -> Result<SchemaVerification, ClientError>
pub async fn deploy_app( &self, app_id: &str, archive: Vec<u8>, ) -> Result<String, ClientError>
pub async fn deploy_frontend( &self, app_id: &str, archive: Vec<u8>, ) -> Result<String, ClientError>
pub async fn start_worker(&self, app_id: &str) -> Result<String, ClientError>
pub async fn stop_worker(&self, app_id: &str) -> Result<String, ClientError>
pub async fn worker_status(&self, app_id: &str) -> Result<String, ClientError>
pub async fn list_integrations(&self) -> Result<Vec<JsonValue>, ClientError>
pub async fn get_forge_config(&self) -> Result<JsonValue, ClientError>
pub async fn get_platform_env( &self, ) -> Result<HashMap<String, String>, ClientError>
pub async fn list_platform_secrets(&self) -> Result<Vec<String>, ClientError>
pub async fn set_platform_secret( &self, key: &str, value: &str, ) -> Result<(), ClientError>
pub async fn delete_platform_secret(&self, key: &str) -> Result<(), ClientError>
Trait Implementations§
Source§impl Clone for RuntimeClient
impl Clone for RuntimeClient
Source§fn clone(&self) -> RuntimeClient
fn clone(&self) -> RuntimeClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeClient
impl !RefUnwindSafe for RuntimeClient
impl Send for RuntimeClient
impl Sync for RuntimeClient
impl Unpin for RuntimeClient
impl UnsafeUnpin for RuntimeClient
impl !UnwindSafe for RuntimeClient
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