#![hdk::zome]
#[hdk:entry] struct Post {
content: String,
}
#[hdk:entry(validation = "validate_blog", validation_package = ChainFull)]
struct Blog {
owner: Agent,
#[hdk::links("posts")]
posts: vec<Post>,
}
fn validate_blog(entry: BlogEntry, validation_data: ValidationData) -> ZomeApiResult<()> {
}
#[hdk::init] fn init() -> bool {
true
}
#[hdk::receive] fn receive() -> ZomeApiResult<()> {
}
#[hdk::zome_function(traits = ["zome", "bridge"])]
fn get_posts() -> ZomeApiResult<String> {
}
#[hdk::zome_function(traits = ["plumbus"])]
fn delete_all_posts_idc() -> ZomeApiResult<> {
}