Skip to main content

Crate ravenrs_app_library

Crate ravenrs_app_library 

Source
Expand description

Records most business applications need, ready to use or to extend: every one is a plain EntityInfo, so adding a field or a rule is a matter of calling it before handing it over.

use ravenrs_app::{Application, FieldInfo, FieldKind};
use ravenrs_app_library::{LibraryModule, person};

let application = Application::builder("Contacts")
    .module(LibraryModule::new().task().entity(person().field(FieldInfo::new("badge", FieldKind::Text))))
    .build()?;
// What they point to comes along.
assert!(application.entities().iter().any(|entity| entity.name == "Address"));

Structs§

LibraryModule
Brings these records into an application, each with a place in the navigation if given one. What they point to in this library comes along by itself, out of the navigation.

Constants§

PT_BR
Their words in Brazilian Portuguese, as a difference for translation.

Functions§

address
A postal address.
country
A country, which addresses point to.
event
Something that happens at a time.
file_record
A file, with a name of its own.
note
Something written down.
organization
A company or any other organization.
person
A person.
task
Something to do.