Model to define a specific record structure
Methods
Create a new record based upon this model.
Example
let model = exo::get_model()?;
let record = model.new_record();
assert!(record is exo::Record);
Try to get a variable by it's ident from the model.
Example
let model = exo::get_model()?;
let variable = model.get_variable("name")?;
assert!(variable is exo::Variable);
fn
create_record(
self, value:
String, value2, value3, value4) ->
Result
Deprecated:This function is deprecated, please use exo::Model::new_record
Create a new record based upon this model.
Example
let model = exo::get_model()?;
let record = model.create_record("new_user", "1", "New User", "New User Description")?;
assert!(record is exo::Record);
Protocols
let output = value.ident
Allows a get operation to work.
let output = value.version
Allows a get operation to work.
let output = value.status
Allows a get operation to work.
let output = value.name
Allows a get operation to work.
value.name = input
Allows a set operation to work.
let output = value.description
Allows a get operation to work.
value.description = input
Allows a set operation to work.
let output = value.icon
Allows a get operation to work.
value.icon = input
Allows a set operation to work.
let output = value.layout
Allows a get operation to work.
value.layout = input
Allows a set operation to work.
let output = value.variables
Allows a get operation to work.
value.variables = input
Allows a set operation to work.
protocol
get record_right
let output = value.record_right
Allows a get operation to work.
protocol
set record_right
value.record_right = input
Allows a set operation to work.
let output = value.system
Allows a get operation to work.
let output = value.uuid
Allows a get operation to work.
if value == b { }
Allows for partial equality operations to work.
println("{:?}", value)
Allows the value to be debug printed.
println("{}", value)
Allows the value to be display printed.