Class: DurableHuggingfaceHub::Struct

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/durable_huggingface_hub/types.rb

Overview

Base class for data structures using dry-struct.

Provides immutable, type-checked data structures with automatic attribute validation and coercion.

Examples:

Defining a data structure

class MyData < DurableHuggingfaceHub::Struct
  attribute :name, Types::String
  attribute :count, Types::Integer
  attribute :optional, Types::OptionalString
end

Defined Under Namespace

Modules: Loadable