deriv/example/foo

Types

pub type Bar {
  Bar(baz: Bool)
}

Constructors

  • Bar(baz: Bool)
pub type Foo {
  Foo(
    uuid: Uuid,
    id: Int,
    name: String,
    active: Bool,
    ratio: Float,
    maybe: Option(String),
    words: List(String),
  )
}

Constructors

  • Foo(
      uuid: Uuid,
      id: Int,
      name: String,
      active: Bool,
      ratio: Float,
      maybe: Option(String),
      words: List(String),
    )

Functions

pub fn decoder_bar() -> Decoder(Bar)
pub fn decoder_foo() -> Decoder(Foo)
pub fn encode_foo(value: Foo) -> Json
Search Document