suweal/surreal_type

Types

pub type SurrealType {
  String
  Int
  Float
  Bool
  Datetime
  Identifier(String)
  Record(String)
  Option(SurrealType)
  Array(SurrealType)
  Point
  Object
  None
}

Constructors

  • String
  • Int
  • Float
  • Bool
  • Datetime
  • Identifier(String)
  • Record(String)
  • Option(SurrealType)
  • Array(SurrealType)
  • Point
  • Object
  • None

Values

pub fn from_string(str: String) -> Result(SurrealType, String)
pub fn to_gleam_module(
  type_: SurrealType,
  linked_enum: option.Option(String),
) -> module.Module
pub fn to_gleam_type(kind: SurrealType) -> module.Module
pub fn to_string(type_: SurrealType) -> String
pub fn value_to_gleam_module(
  type_: SurrealType,
  linked_enum: option.Option(String),
  name: String,
) -> module.Module
✨ Search Document