This lib integrates all the elements the app needs in order to only keep the views, listeners and resources in the app project.
[Report Bug](https://github.com/lenra-io/app-lib-rust/issues) ยท [Request Feature](https://github.com/lenra-io/app-lib-rust/issues)To add it to your Lenra app project:
console
cargo add lenra-app@~1.0.0-beta.0
To call the Lenra API from a listener, just use the Api instance in the parameter of your listener function.
You can then call the data API like that to create a document: ```rust
pub struct CustomType {
#[serde(rename = "_id")]
pub id: Option
impl Doc for CustomType {
fn id(&self) -> Option
pub struct CustomProps { value: String, }
fn mylistener(params: ListenerParams
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please open an issue with the tag "enhancement" or "bug". Don't forget to give the project a star! Thanks again!
Distributed under the MIT License. See LICENSE for more information.
Lenra - @lenra_dev - contact@lenra.io
Project Link: https://github.com/lenra-io/app-lib-rust