pub struct ApiModelLoader { /* private fields */ }Expand description
API-based model loader
Implementations§
Source§impl ApiModelLoader
impl ApiModelLoader
Sourcepub fn new(backend: ApiStorageBackend) -> Self
pub fn new(backend: ApiStorageBackend) -> Self
Create a new API model loader
Sourcepub async fn load_model(
&self,
domain: &str,
) -> Result<ModelLoadResult, StorageError>
pub async fn load_model( &self, domain: &str, ) -> Result<ModelLoadResult, StorageError>
Load model from API endpoints (domain-scoped).
Loads tables and relationships via HTTP API:
- GET /workspace/domains/{domain}/tables
- GET /workspace/domains/{domain}/relationships
Auto Trait Implementations§
impl Freeze for ApiModelLoader
impl !RefUnwindSafe for ApiModelLoader
impl Send for ApiModelLoader
impl Sync for ApiModelLoader
impl Unpin for ApiModelLoader
impl !UnwindSafe for ApiModelLoader
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