The first code block in the docs here,
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct SomeExternalInput {
title: String,
content: String,
}
pub fn add_book(input: SomeExternalInput) -> ExternResult<EntryHash> {
unimplemented!();
}
pub fn get_book(hash: String) -> ExternResult<Book> {
unimplemented()
}
provides SomeExternalInput whereas the developer exercises repo here provides Book which we are told to implement:
entry_defs![Book::entry_def()];
#[hdk_entry(id = "book")]
pub struct Book {
title: String,
content: String,
}