Skip to main content

validate_fields

Function validate_fields 

pub fn validate_fields(
    doc: &AutoCommit,
    obj: &ExId,
    allowed: &[(&str, FieldType)],
) -> Result<(), String>
Expand description

Validate only the fields explicitly declared by the caller.

ยงErrors

Returns an error for unknown fields, incompatible values or unreadable content.