Skip to main content

create

Function create 

Source
pub fn create<'a>(
    files: &[File<'a>],
    into: &str,
    class: &str,
    values: &[(&str, &str)],
    random: &mut dyn FnMut() -> [u8; 16],
) -> Result<Added<'a>, String>
Expand description

A new object of class, with values (field, value as set_field takes it) and its mRID as text where the class has a field for it (IdentifiedObject.mRID, or its own), written at the end of the file into, with an rdf:ID whose UUID is drawn from random. For objects in no container, which add cannot place: a response, a dependency.