Skip to main content

create_externally_defined_style

Function create_externally_defined_style 

Source
pub fn create_externally_defined_style(
    tx: &mut Transaction,
    schema: &Schema,
    kind: ExternalStyleKind,
    location: Option<&str>,
    identification: Option<&str>,
    name: Option<&str>,
) -> StyleResult<EntityId>
Expand description

Stage an externally defined style reference.

All three attributes are optional in the schema, but a reference naming nothing at all identifies no external resource: it would round-trip as three nulls and resolve for no reader. At least one of location, identification, or name must be given.

ยงErrors

Refuses a reference with no locating attribute set, and a blank string in any attribute that is supplied.