Skip to main content

check_embed

Function check_embed 

Source
pub fn check_embed(embed: &Embed, limits_value: &Limits) -> Result<(), Error>
Expand description

Check a batch has a bounded item count and distinct valid identifiers.

ยงErrors

Returns embed_protocol for an empty batch or invalid ids, and embed_batch_too_large when the item count exceeds the limit.