pub enum OutputDataForm {
CheckModel((bool, Vec<String>, HashMap<String, Widget>, Document)),
Save((bool, Vec<String>, HashMap<String, Widget>, String)),
Delete((bool, String)),
}
Expand description
Tuple Fields of CheckModel
let output_data = UserProfile.save()?;
println!("{}", output_data.hash());
Get MongoDB ID from hash-line
let output_data = UserProfile.save()?;
println!("{:?}", output_data.id()?);
Get Map of Widgets
( Wig - Widgets )
let output_data = UserProfile.save()?;
println!("{:?}", output_data.wig());
Get Json-line
let output_data = UserProfile.save()?;
println!("{}", output_data.json()?);
Json-line for admin panel.
( converts a widget map to a list, in the order of the Model fields )
let output_data = UserProfile.save()?;
println!("{}", output_data.json_for_admin()?);
Get validation status (boolean)
let output_data = UserProfile {...}
let result = output_data.check()?;
assert!(result.is_valid());
Get Document
let output_data = UserProfile.save()?;
println!("{:?}", output_data.doc());
A description of the error if the document was not deleted.
(Main use for admin panel.)
let output_data = UserProfile.delete()?;
println!("{}", output_data.err_msg());
Formats the value using the given formatter. Read more
Get Html-line
let output_data = UserProfile.save()?;
println!("{}", output_data.html());
Rendering HTML-controls code for Form.
( If necessary, customize the code generation yourself using html and css from
Bootstrap, Material Design, etc. ) Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,