Gst.Structure.prototype.set_name

function set_name(name:String):void {
    // Gjs wrapper for gst_structure_set_name()
}

Sets the name of the structure to the given name. The string provided is copied before being used. It must not be empty, start with a letter and can be followed by letters, numbers and any of "/-_.:".

name

the new name of the structure