deriv/example/unify

Types

pub type AutheTokens {
  Authe(
    id: Uuid,
    encrypted_access_token: String,
    encrypted_refresh_token: String,
  )
}

Constructors

  • Authe(
      id: Uuid,
      encrypted_access_token: String,
      encrypted_refresh_token: String,
    )
pub type AutheTypeA {
  AutheTypeA(
    user_id: Uuid,
    name: String,
    email: String,
    org_id: Uuid,
    authe_id: Uuid,
    provider: String,
    uid: Option(String),
    aid: Option(String),
    encrypted_access_token: String,
    encrypted_refresh_token: String,
  )
}

Constructors

  • AutheTypeA(
      user_id: Uuid,
      name: String,
      email: String,
      org_id: Uuid,
      authe_id: Uuid,
      provider: String,
      uid: Option(String),
      aid: Option(String),
      encrypted_access_token: String,
      encrypted_refresh_token: String,
    )
pub type AutheTypeB {
  AutheTypeB(
    user_id: Uuid,
    name: String,
    email: String,
    org_id: Uuid,
    authe_id: Uuid,
    provider: String,
    uid: Option(String),
    aid: Option(String),
    encrypted_access_token: String,
    encrypted_refresh_token: String,
  )
}

Constructors

  • AutheTypeB(
      user_id: Uuid,
      name: String,
      email: String,
      org_id: Uuid,
      authe_id: Uuid,
      provider: String,
      uid: Option(String),
      aid: Option(String),
      encrypted_access_token: String,
      encrypted_refresh_token: String,
    )

Functions

pub fn authe_type_a(value: AutheTypeA) -> AutheTokens
pub fn authe_type_b(value: AutheTypeB) -> AutheTokens
pub fn suppress_option_warnings() -> List(Option(Nil))
Search Document