Liking cljdoc? Tell your friends :D

borsh.macros


defstructclj/smacro

(defstruct name fields)

This macro works similarly to clojure.core/defrecord, except borsh schema will be defined at the same time. Generated class and constructor function(e.g. ->Foo) are extended to protocol HasSchema, so both (schema Foo) and (schema ->Foo) return the schema.

This macro works similarly to clojure.core/defrecord, except borsh
schema will be defined at the same time. Generated class and
constructor function(e.g. ->Foo) are extended to protocol HasSchema,
so both (schema Foo) and (schema ->Foo) return the schema.
raw docstring

defstruct-implclj

(defstruct-impl env name fields)

defvariantsclj/smacro

(defvariants name variants)

This macro creates a schema of variants to represent the complex enums.

This macro creates a schema of variants to represent the complex enums.
raw docstring

defvariants-implclj

(defvariants-impl name variants)

parse-fieldclj

(parse-field f)

parse-field-schemaclj

(parse-field-schema s)

parse-schemaclj

(parse-schema fields)

Return schema based on fields' metadata.

Return schema based on fields' metadata.
raw docstring

sym->ctorclj

(sym->ctor sym)

unify-metaclj

(unify-meta m)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close