auric 0.1.5

CLI for the Ember-inspired Auric SPA framework
use auric_runtime::{Config, async_trait::async_trait, data::{Adapter, QueryRecordOptions}};
use jsonapi_core::Resource;
use anyhow::Result;

#[derive(Default)]
pub struct {{structName}} {}

#[async_trait(?Send)]
impl Adapter for {{structName}} {
    fn init(&mut self, _config: &Config) -> Result<()> {
        Ok(())
    }

    async fn create_record(&self, _resource: Resource) -> Result<Resource> {
        todo!("NIY")
    }

    async fn delete_record(&self, _resource: &Resource) -> Result<()> {
        todo!("NIY")
    }

    async fn find_record(&self, _resource_type: &str, _id: &str) -> Result<Resource> {
        todo!("NIY")
    }

    async fn query(&self, _resource_type: &str, _query: serde_json::Value) -> Result<Vec<Resource>> {
        todo!("NIY")
    }

    async fn query_record(&self, _resource_type: &str, _query: serde_json::Value, _options: QueryRecordOptions) -> Result<Option<Resource>> {
        todo!("NIY")
    }

    async fn update_record(&self, _resource: Resource) -> Result<Resource> {
        todo!("NIY")
    }
}


#[cfg(test)]
mod tests {
    use super::{{structName}};

    #[test]
    fn can_construct() {
        let _ = {{structName}}::default();
    }
}