include module type of struct include Sihl.Contract.User end
Sourcetype error = | AlreadyRegistered| IncorrectPassword| InvalidPasswordProvided of string| DoesNotExist
Sourcetype t = {id : string;email : string;username : string option;password : string;status : string;admin : bool;confirmed : bool;created_at : Ptime.t;updated_at : Ptime.t;
} Sourceexception Exception of string Sourceval to_sexp : t -> Sexplib0.Sexp.t Sourceval of_yojson : Yojson__Safe.t -> t option Sourceval to_yojson :
t ->
[> `Assoc of (string * [> `Bool of bool | `Null | `String of string ]) list ] 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 :
email:string ->
password:string ->
username:string option ->
admin:bool ->
confirmed:bool ->
(t, string) result