Exolynk variable to show & change data with rights and additional settings
Methods
Creates a new Color from a String
input.
Clone the variable itself.
Protocols
let output = value.ident
Allows a get operation to work.
value.ident = input
Allows a set operation to work.
let output = value.system
Allows a get operation to work.
let output = value.released
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.required
Allows a get operation to work.
value.required = input
Allows a set operation to work.
let output = value.gdpr
Allows a get operation to work.
value.gdpr = input
Allows a set operation to work.
let output = value.settings
Allows a get operation to work.
value.settings = input
Allows a set 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.
let output = value.value
Allows a get operation to work.
value.value = input
Allows a set operation to work.
let output = value.access
Get the variable access HashMap.
Exaple:
let variable = exo::Variable::new("ident","value");
variable.access = exo::Access::Write;
let access = variable.access;
assert!(access is Object);
assert_eq!(access["00000000-0000-0000-0000-000000000000"], exo::Access::Write);
access["caa17000-4228-4bd3-8bde-cec73cc06623"] = exo::Access::Read;
variable.access = access;
let access = variable.access;
assert_eq!(access["caa17000-4228-4bd3-8bde-cec73cc06623"], exo::Access::Read);
value.access = input
Set the variable access. It can be either set as Map or access which will set the default right uuid.
Exaple:
let variable = exo::Variable::new("ident","value");
variable.access = exo::Access::Write;
let access = variable.access;
assert!(access is Object);
assert_eq!(access["00000000-0000-0000-0000-000000000000"], exo::Access::Write);
access["caa17000-4228-4bd3-8bde-cec73cc06623"] = exo::Access::Read;
variable.access = access;
let access = variable.access;
assert_eq!(access["caa17000-4228-4bd3-8bde-cec73cc06623"], exo::Access::Read);