Crates.io | type_more |
lib.rs | type_more |
version | 0.1.1 |
source | src |
created_at | 2024-07-20 15:18:11.722594 |
updated_at | 2024-07-20 15:27:54.10187 |
description | A Rust crate for custom data types such as email, URL, and others, implementing the 'parse, don't validate' principle. |
homepage | https://crates.io/crates/type_more |
repository | https://github.com/nurfianqodar/type_more |
max_upload_size | |
id | 1309539 |
size | 23,975 |
type_more
type_more
is a Rust crate that provides custom data types such as Email
, Url
, and others. It follows the "parse, don't validate" principle to ensure that data is parsed correctly while avoiding unnecessary validation logic. This approach focuses on parsing data into the desired format rather than validating its correctness.
The crate adheres to the "parse, don't validate" principle. This means that instead of validating data against specific rules or patterns, the crate focuses on parsing the data into structured types. This approach ensures that the data is correctly formatted and can be used in a consistent manner within the application.
Note: This section is intentionally left out as per the request. For usage examples, refer to the documentation.
Add type_more
to your Cargo.toml
:
[dependencies]
type_more = "0.1" # Replace with the latest version