yeti-types 0.1.2

Yeti platform vocabulary — traits, error types, encoding, schema types. Zero yeti-crate dependencies.
Documentation

Yeti Types — Platform vocabulary crate.

Defines the core traits, error types, encoding functions, and schema types that every other Yeti crate depends on. This crate has ZERO dependencies on other yeti crates.

Exports

  • trait Resource — handle(method, request, params) -> response
  • trait KvBackend — get, put, delete, scan, get_batch
  • enum Access — request authorization decision (closed enum, no dyn dispatch); holds Arc<User> when authenticated
  • trait AuthProviderauthenticate(request) -> Option<AuthIdentity>
  • trait Plugin — plugin lifecycle (register, on_ready, on_shutdown)
  • trait RequestMiddleware — request augmentation before handlers
  • struct Context — request context (auth, table context, permission)
  • struct TablePermission — Public | FullAccess | AttributeRestricted
  • struct TableDefinition — schema-parsed table definition
  • struct YetiError / type Result<T> — error handling
  • fn encode(T) -> Vec<u8> / fn decode(bytes) -> T — storage encoding