restructure modules

This commit is contained in:
nora 2024-04-15 20:22:45 +02:00
parent b86292fadb
commit 7e479e7a28
10 changed files with 114 additions and 114 deletions

View file

@ -1,17 +1,15 @@
use std::collections::HashMap;
use terustform::{
framework::{
datasource::{self, DataSource},
provider::Provider,
AttrPath, DResult, StringValue, ValueModel,
},
datasource::{self, DataSource},
provider::Provider,
values::Value,
AttrPath, DResult, StringValue, ValueModel,
};
#[tokio::main]
async fn main() -> eyre::Result<()> {
terustform::serve(&ExampleProvider {}).await
terustform::start(&ExampleProvider {}).await
}
pub struct ExampleProvider {}
@ -28,7 +26,7 @@ impl Provider for ExampleProvider {
struct ExampleDataSource {}
#[derive(terustform::DataSourceModel)]
#[derive(terustform::Model)]
struct ExampleDataSourceModel {
name: StringValue,
meow: StringValue,