Module Os_lib.Email_or_phone

Parse strings that can be e-mails or phones.

type t
val of_json : Deriving_Json_lexer.lexbuf -> t
val to_json : Buffer.t -> t -> unit
val json : t Deriving_Json.t
type y = [
  1. | `Email
  2. | `Phone
]
val y : t -> y
val to_string : t -> string
val of_string : only_mail:bool -> string -> t option
module Almost : sig ... end
val of_almost : Almost.t -> t option