Crate oca_sdk_rs

Source
Expand description

§OCA SDK

Compact yet powerful SDK for working with OCA bundles.

§Features

  • Create OCA Bundle from OCAFile.
  • Validate OCA Bundle semantics.
  • Validate data against OCA Bundle.
  • Traverse through OCA Bundle attributes.

Modules§

data_validator
overlay

Structs§

Attribute
Facade
OCABox
Internal representation of OCA objects in split between non-attributes values and attributes. It is used to build dynamically objects without knowing yet whole structure of the object. Used mainly as a container to hold information while parsing OCAfile. Example of usage:
OCABundle
OCABundleInfo
OCAValidator

Enums§

AttributeType
NestedAttrType
Enum representing attribute type which can be nested.
NestedAttrTypeFrame
This module includes structures for setting up the recursion crate. They enable usage of expand_frames and collapse_frames functions for NestedAttrType.
OverlayType
RefValue
SemanticValidationStatus

Traits§

ToJSON
WithInfo

Functions§

build_from_ocafile
load
parse_oca_bundle_to_ocafile
validate_semantics
Performs semantic validation of an OCABundle and returns a status indicating whether the validation succeeded or failed, along with any associated errors.