include module type of struct include Sihl.Contract.User end
Sourcetype status = | Active| Inactive
Sourceval status_of_yojson :
Yojson.Safe.t ->
status Ppx_deriving_yojson_runtime.error_or Sourceval pp_status :
Ppx_deriving_runtime.Format.formatter ->
status ->
Ppx_deriving_runtime.unit Sourceval show_status : status -> Ppx_deriving_runtime.string Sourcetype t = {id : string;email : string;username : string option;name : string option;given_name : string option;password : string;status : status;admin : bool;confirmed : bool;created_at : Ptime.t;updated_at : Ptime.t;
} Sourceval to_yojson : t -> Yojson.Safe.t Sourceval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or Sourceval _ : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or Sourceval pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unit Sourceval show : t -> Ppx_deriving_runtime.string Sourceval show_name : t -> string option Sourceexception Exception of string Sourceval to_sexp : t -> Sexplib0.Sexp.t Sourceval set_user_details : t -> email:string -> username:string option -> t Sourceval matches_password : string -> t -> bool Sourceval default_password_policy : string -> (unit, string) result Sourceval make :
?id:string ->
email:string ->
password:string ->
name:string option ->
given_name:string option ->
username:string option ->
admin:bool ->
bool ->
(t, string) result