{"id":27377951,"url":"https://github.com/jusexton/endors","last_synced_at":"2026-02-11T18:32:27.272Z","repository":{"id":259489269,"uuid":"878112694","full_name":"jusexton/endors","owner":"jusexton","description":"Validation library written in the rust programming language.","archived":false,"fork":false,"pushed_at":"2024-10-24T21:29:31.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-02T09:17:58.670Z","etag":null,"topics":["validation"],"latest_commit_sha":null,"homepage":"https://docs.rs/endors","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jusexton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T19:56:37.000Z","updated_at":"2024-10-24T21:29:35.000Z","dependencies_parsed_at":"2024-10-25T23:57:45.073Z","dependency_job_id":"0c6051c9-0149-4877-822f-568814024f56","html_url":"https://github.com/jusexton/endors","commit_stats":null,"previous_names":["jusexton/endors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jusexton/endors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusexton%2Fendors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusexton%2Fendors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusexton%2Fendors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusexton%2Fendors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jusexton","download_url":"https://codeload.github.com/jusexton/endors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusexton%2Fendors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29341227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T18:24:36.877Z","status":"ssl_error","status_checked_at":"2026-02-11T18:23:50.867Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["validation"],"created_at":"2025-04-13T13:08:57.729Z","updated_at":"2026-02-11T18:32:27.243Z","avatar_url":"https://github.com/jusexton.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Endors\n\nWarning: Endors is not production ready and currently has a very unstable API. Use are your own risk.\n\nValidation framework written in the rust programming language.\n\n## Quick Look\n\n```rs\nstruct User {\n    first_name: String,\n    last_name: String,\n    phone_number: Option\u003cString\u003e\n}\n\nstruct UserValidator;\nimpl Validator\u003c\u0026User\u003e for UserValidator {\n    fn validate(\u0026self, value: \u0026User) -\u003e Result\u003c(), endors::Error\u003e {\n        // Perform many validations and collect all the results into a single result.\n        collect_results!(\n            validate!(value.first_name, Len { min: 1, max: 100 }), // Uses default len error message.\n            validate!(\n                value.first_name, \n                |s: \u0026str| s.len() % 2 == 0 =\u003e \"First name must have an even number of characters.\" // Custom error message\n            ),\n            validate!(\n                value.last_name, \n                NotEqual(value.first_name) =\u003e \"Last name must not equal first name.\"\n            ),\n            validate!(\n                value.phone_number, \n                IsSome =\u003e \"Phone number must be provided.\"\n            ),\n        )\n\n        // OR\n\n        // Question mark operator to fail fast and only return the first error that occurs.\n        validate!(value.first_name, Len { min: 1, max: 100 })?;\n        validate!(value.first_name, |s: \u0026str| s.len() % 2 == 0 =\u003e \"First name must have an even number of characters.\")?;\n        validate!(value.last_name, NotEqual(value.first_name) =\u003e \"Last name must not equal first name.\")?;\n        validate!(value.phone_number, IsSome =\u003e \"Phone number must be provided.\"?;\n    }\n}\n\nlet result = UserValidator.validate(\u0026User { \n    first_name: \"John\".to_string(), \n    last_name: \"Doe\".to_string(),\n    phone_number: Some(\"123-456-7890\".to_string())\n});\nassert!(result.is_ok())\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusexton%2Fendors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjusexton%2Fendors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusexton%2Fendors/lists"}