pub fn create_schema<T: Config>(
    model: BoundedVec<u8, T::SchemaModelMaxBytesBoundedVecLimit>,
    model_type: ModelType,
    payload_location: PayloadLocation
)
Expand description

Adds a given schema to storage. The schema in question must be of length between the min and max model size allowed for schemas (see pallet constants above). If the pallet’s maximum schema limit has been fulfilled by the time this extrinsic is called, a SchemaCountOverflow error will be thrown.

Events

Errors

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::create_schema.